diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-01-06 19:30:17 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-01-06 19:30:17 -0500 |
commit | ec77429d7f3b6e5bc6bb8a93beb8dac6c6dd99b1 (patch) | |
tree | b63ba5c370d3154b0ad6b4a5975573eb64aed7ae | |
parent | 37978f16f382360bef160017d4e1803d0c56244b (diff) | |
download | systemtap-steved-ec77429d7f3b6e5bc6bb8a93beb8dac6c6dd99b1.tar.gz systemtap-steved-ec77429d7f3b6e5bc6bb8a93beb8dac6c6dd99b1.tar.xz systemtap-steved-ec77429d7f3b6e5bc6bb8a93beb8dac6c6dd99b1.zip |
PR9699: tweak autoconf file for Strict C Language Standards Compliance (tm)
-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. */ |