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:
committed by
John Johansen
parent
f4f04adabc
commit
1928e90d88
@@ -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[])
|
||||
{
|
||||
|
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user