From 27053aa14ba234a0d5e1b4affd272a5c7b01aa1b Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 6 Jan 2009 17:06:30 -0500 Subject: PR9699: build fixes for kernel 2.6.28 --- runtime/autoconf-task-uid.c | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 runtime/autoconf-task-uid.c (limited to 'runtime/autoconf-task-uid.c') diff --git a/runtime/autoconf-task-uid.c b/runtime/autoconf-task-uid.c new file mode 100644 index 00000000..5f5a321c --- /dev/null +++ b/runtime/autoconf-task-uid.c @@ -0,0 +1,5 @@ +#include + +struct task_struct *foo; +void bar () { foo->uid = 0; } +/* as opposed to linux/cred.h wrappers current_uid() etc. */ -- cgit From ec77429d7f3b6e5bc6bb8a93beb8dac6c6dd99b1 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 6 Jan 2009 19:30:17 -0500 Subject: PR9699: tweak autoconf file for Strict C Language Standards Compliance (tm) --- runtime/autoconf-task-uid.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'runtime/autoconf-task-uid.c') 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 -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. */ -- cgit