2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 14:25:52 +00:00

Merge Misc small fixes to resolve some compiler warnings in regression test suite

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1407
Approved-by: John Johansen <john@jjmx.net>
Merged-by: John Johansen <john@jjmx.net>
(cherry picked from commit 14f54f3df2)
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen
2024-11-06 03:04:18 +00:00
committed by John Johansen
parent f4f04adabc
commit 1928e90d88
2 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@
#include <unistd.h>
#define BUF_LEN 128
#define FD_STR_LEN 4
#define FD_STR_LEN 16
int main(int argc, char *argv[])
{

View File

@@ -86,10 +86,10 @@ static pid_t _clone(int (*fn)(void *), void *arg)
void *stack = alloca(stack_size);
#ifdef __ia64__
return __clone2(pivot_and_verify_label, stack, stack_size,
return __clone2(fn, stack, stack_size,
CLONE_NEWNS | SIGCHLD, arg);
#else
return clone(pivot_and_verify_label, stack + stack_size,
return clone(fn, stack + stack_size,
CLONE_NEWNS | SIGCHLD, arg);
#endif
}