diff options
-rw-r--r-- | runtime/POSIX/klee_init_env.c | 6 | ||||
-rw-r--r-- | tools/klee-replay/klee_init_env.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/runtime/POSIX/klee_init_env.c b/runtime/POSIX/klee_init_env.c index 80d3a104..f691c743 100644 --- a/runtime/POSIX/klee_init_env.c +++ b/runtime/POSIX/klee_init_env.c @@ -237,10 +237,10 @@ usage: (klee_init_env) [options] [program arguments]\n\ /* The following function represents the main function of the user application * and is renamed during POSIX setup */ -int __klee_posix_wrapped_main(int argc, char **argv); +int __klee_posix_wrapped_main(int argc, char **argv, char **envp); /* This wrapper gets called instead of main if POSIX setup is used */ -int __klee_posix_wrapper(int argcPtr, char **argvPtr) { +int __klee_posix_wrapper(int argcPtr, char **argvPtr, char** envp) { klee_init_env(&argcPtr, &argvPtr); - return __klee_posix_wrapped_main(argcPtr, argvPtr); + return __klee_posix_wrapped_main(argcPtr, argvPtr, envp); } diff --git a/tools/klee-replay/klee_init_env.c b/tools/klee-replay/klee_init_env.c index 5e9dd06c..b0b6e912 100644 --- a/tools/klee-replay/klee_init_env.c +++ b/tools/klee-replay/klee_init_env.c @@ -1,3 +1,3 @@ #include "../../runtime/POSIX/klee_init_env.c" -int __klee_posix_wrapped_main(int argc, char **argv) { return 0; } +int __klee_posix_wrapped_main(int argc, char **argv, char **envp) { return 0; } |