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>
This commit is contained in:
John Johansen 2024-11-06 03:04:18 +00:00
commit 14f54f3df2
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
}