diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/fs_lib.c | 3 | ||||
-rw-r--r-- | src/firejail/seccomp.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/firejail/fs_lib.c b/src/firejail/fs_lib.c index 19e900a4b..d86588792 100644 --- a/src/firejail/fs_lib.c +++ b/src/firejail/fs_lib.c | |||
@@ -130,7 +130,8 @@ static void copy_libs_for_exe(const char *exe, const char *private_run_dir) { | |||
130 | } | 130 | } |
131 | 131 | ||
132 | static void copy_libs_for_lib(const char *lib, const char *private_run_dir) { | 132 | static void copy_libs_for_lib(const char *lib, const char *private_run_dir) { |
133 | for (int i = 0; lib_paths[i]; i++) { | 133 | int i; |
134 | for (i = 0; lib_paths[i]; i++) { | ||
134 | char *fname; | 135 | char *fname; |
135 | if (asprintf(&fname, "%s/%s", lib_paths[i], lib) == -1) | 136 | if (asprintf(&fname, "%s/%s", lib_paths[i], lib) == -1) |
136 | errExit("asprintf"); | 137 | errExit("asprintf"); |
diff --git a/src/firejail/seccomp.c b/src/firejail/seccomp.c index 6e0fc0919..13d8d44fa 100644 --- a/src/firejail/seccomp.c +++ b/src/firejail/seccomp.c | |||
@@ -19,9 +19,9 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | #ifdef HAVE_SECCOMP | 21 | #ifdef HAVE_SECCOMP |
22 | #include <sys/mman.h> | ||
23 | #include "firejail.h" | 22 | #include "firejail.h" |
24 | #include "../include/seccomp.h" | 23 | #include "../include/seccomp.h" |
24 | #include <sys/mman.h> | ||
25 | 25 | ||
26 | static int err_printed = 0; | 26 | static int err_printed = 0; |
27 | 27 | ||