1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-09-07
Description: Build with gcc-15
--- a/compartment.c
+++ b/compartment.c
@@ -29,8 +29,8 @@
#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>
-//#include <sys/capability.h>
-#include <linux/capability.h>
+#include <sys/capability.h>
+//#include <linux/capability.h>
#include <stdarg.h>
#include <syslog.h>
#include <sys/time.h>
@@ -208,7 +208,7 @@ int main (int argc, char *argv[]) {
} else { if (sizeof(uid_t) == 8) {
uidrange = (unsigned long int) 2147483646; //4294967295;
} else
- fprintf(stderr, "Warning: weird uid size: %d\n", sizeof(uid_t));
+ fprintf(stderr, "Warning: weird uid size: %zu\n", sizeof(uid_t));
}
program_params = 1;
|