about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorCristian Cadar <cristic@cs.stanford.edu>2011-12-11 22:08:55 +0000
committerCristian Cadar <cristic@cs.stanford.edu>2011-12-11 22:08:55 +0000
commite856cc0ecdbfa7f0f07c459af2a2f3ed5a8f7515 (patch)
treeda34a7545b605f811c8ec202a65ecea2b6bcf4d6 /lib
parent719ddd5298b423b1c3037d2351cb35e42f89522d (diff)
downloadklee-e856cc0ecdbfa7f0f07c459af2a2f3ed5a8f7515.tar.gz
Patch by Ben Gras fixing a few minor issues: adds missing includes,
fixes the ntohs prototype in klee-libc, and removes some unused code.


git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@146352 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Core/Executor.cpp8
-rw-r--r--lib/Solver/Solver.cpp1
2 files changed, 1 insertions, 8 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp
index 6abd0234..64f67b4c 100644
--- a/lib/Core/Executor.cpp
+++ b/lib/Core/Executor.cpp
@@ -258,9 +258,6 @@ namespace {
 }
 
 
-static void *theMMap = 0;
-static unsigned theMMapSize = 0;
-
 namespace klee {
   RNG theRNG;
 }
@@ -3269,11 +3266,6 @@ void Executor::runFunctionAsMain(Function *f,
 
   if (statsTracker)
     statsTracker->done();
-
-  if (theMMap) {
-    munmap(theMMap, theMMapSize);
-    theMMap = 0;
-  }
 }
 
 unsigned Executor::getPathStreamID(const ExecutionState &state) {
diff --git a/lib/Solver/Solver.cpp b/lib/Solver/Solver.cpp
index 4059a82b..9f0d89af 100644
--- a/lib/Solver/Solver.cpp
+++ b/lib/Solver/Solver.cpp
@@ -29,6 +29,7 @@
 #include <vector>
 
 #include <errno.h>
+#include <unistd.h>
 #include <signal.h>
 #include <sys/wait.h>
 #include <sys/ipc.h>