aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/programloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_machine/programloader.cpp')
-rw-r--r--qtmips_machine/programloader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_machine/programloader.cpp b/qtmips_machine/programloader.cpp
index 4a10540..fd0679d 100644
--- a/qtmips_machine/programloader.cpp
+++ b/qtmips_machine/programloader.cpp
@@ -2,7 +2,7 @@
#include <exception>
#include <unistd.h>
#include <fcntl.h>
-#include <errno.h>
+#include <cerrno>
#include <cstring>
#include "qtmipsexception.h"
@@ -47,7 +47,7 @@ ProgramLoader::ProgramLoader(const char *file) {
// We want only LOAD sections so we create map of those sections
for (unsigned i = 1; i < this->n_secs; i++) {
// TODO handle endianity
- if (this->phdrs[i].p_type != PT_LOAD)
+ if (phdrs[i].p_type != PT_LOAD)
continue;
this->map.push_back(i);
}