diff options
-rw-r--r-- | runtime/autoconf-task-uid.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/autoconf-task-uid.c b/runtime/autoconf-task-uid.c index 5f5a321c..8e40f831 100644 --- a/runtime/autoconf-task-uid.c +++ b/runtime/autoconf-task-uid.c @@ -1,5 +1,6 @@ #include <linux/sched.h> -struct task_struct *foo; -void bar () { foo->uid = 0; } +int bar (struct task_struct *foo) { + return (foo->uid = 0); +} /* as opposed to linux/cred.h wrappers current_uid() etc. */ |