diff options
author | netblue30 <netblue30@yahoo.com> | 2015-10-16 10:30:16 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-10-16 10:30:16 -0400 |
commit | 31b918c3102211ebcbe4b344347460cedf729210 (patch) | |
tree | 81026cdaad30b8dd3945fc0b3818f7253097bf00 | |
parent | testing (diff) | |
download | firejail-31b918c3102211ebcbe4b344347460cedf729210.tar.gz firejail-31b918c3102211ebcbe4b344347460cedf729210.tar.zst firejail-31b918c3102211ebcbe4b344347460cedf729210.zip |
fix 32bit compilation
-rw-r--r-- | src/firejail/seccomp.c | 4 | ||||
-rw-r--r-- | src/firemon/procevent.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/firejail/seccomp.c b/src/firejail/seccomp.c index 7366c1268..7c0bd322d 100644 --- a/src/firejail/seccomp.c +++ b/src/firejail/seccomp.c | |||
@@ -371,7 +371,7 @@ static void write_seccomp_file(void) { | |||
371 | errExit("open"); | 371 | errExit("open"); |
372 | 372 | ||
373 | if (arg_debug) | 373 | if (arg_debug) |
374 | printf("Save seccomp filter, size %lu bytes\n", sfilter_index * sizeof(struct sock_filter)); | 374 | printf("Save seccomp filter, size %u bytes\n", (unsigned) (sfilter_index * sizeof(struct sock_filter))); |
375 | errno = 0; | 375 | errno = 0; |
376 | ssize_t sz = write(fd, sfilter, sfilter_index * sizeof(struct sock_filter)); | 376 | ssize_t sz = write(fd, sfilter, sfilter_index * sizeof(struct sock_filter)); |
377 | if (sz != (ssize_t)(sfilter_index * sizeof(struct sock_filter))) { | 377 | if (sz != (ssize_t)(sfilter_index * sizeof(struct sock_filter))) { |
@@ -425,7 +425,7 @@ static void read_seccomp_file(char *file_name) { | |||
425 | sfilter_index = sz / sizeof(struct sock_filter); | 425 | sfilter_index = sz / sizeof(struct sock_filter); |
426 | 426 | ||
427 | if (arg_debug) | 427 | if (arg_debug) |
428 | printf("Read seccomp filter, size %lu bytes\n", sfilter_index * sizeof(struct sock_filter)); | 428 | printf("Read seccomp filter, size %u bytes\n", (unsigned) (sfilter_index * sizeof(struct sock_filter))); |
429 | 429 | ||
430 | close(fd); | 430 | close(fd); |
431 | free(fname); | 431 | free(fname); |
diff --git a/src/firemon/procevent.c b/src/firemon/procevent.c index d2b5f7bbf..79ca96805 100644 --- a/src/firemon/procevent.c +++ b/src/firemon/procevent.c | |||
@@ -167,7 +167,7 @@ static int procevent_monitor(const int sock, pid_t mypid) { | |||
167 | } | 167 | } |
168 | 168 | ||
169 | for (nlmsghdr = (struct nlmsghdr *)buf; | 169 | for (nlmsghdr = (struct nlmsghdr *)buf; |
170 | NLMSG_OK (nlmsghdr, len); | 170 | NLMSG_OK (nlmsghdr, (unsigned) len); |
171 | nlmsghdr = NLMSG_NEXT (nlmsghdr, len)) { | 171 | nlmsghdr = NLMSG_NEXT (nlmsghdr, len)) { |
172 | 172 | ||
173 | struct cn_msg *cn_msg; | 173 | struct cn_msg *cn_msg; |