mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01: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>
This commit is contained in:
commit
14f54f3df2
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue