From 87fbb5033762ea90e70b1fae1389c8fe8afdfa90 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 6 Nov 2010 03:15:06 -0400 Subject: [PATCH] Linux: Fix prototypes for sys_setgroups_stub and sys32_setgroups_stub MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes “warning: function declaration isn’t a prototype”. Signed-off-by: Anders Kaseorg Reviewed-on: http://gerrit.openafs.org/3277 Tested-by: BuildBot Reviewed-by: Derrick Brashear (cherry picked from commit 14980b477822ecc66e95f8c2a71f0fc11839afbd) Change-Id: I8bbee19ae1a36b2222df224856d08ea71ce91d83 Reviewed-on: http://gerrit.openafs.org/3306 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/LINUX/osi_syscall.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/afs/LINUX/osi_syscall.c b/src/afs/LINUX/osi_syscall.c index a4c92ed21..19dc78f2c 100644 --- a/src/afs/LINUX/osi_syscall.c +++ b/src/afs/LINUX/osi_syscall.c @@ -129,16 +129,16 @@ extern int afs32_xsetgroups(); asmlinkage long (*sys32_setgroupsp)(int gidsetsize, gid_t *grouplist); asmlinkage long sys_close(unsigned int fd); -static void sys_setgroups_stub() +static void sys_setgroups_stub(void) __attribute__ ((pure,const,no_instrument_function)); -static void sys_setgroups_stub() +static void sys_setgroups_stub(void) { printf("*** error! sys_setgroups_stub called\n"); } -static void sys32_setgroups_stub() +static void sys32_setgroups_stub(void) __attribute__ ((pure,const,no_instrument_function)); -static void sys32_setgroups_stub() +static void sys32_setgroups_stub(void) { printf("*** error! sys32_setgroups_stub called\n"); } -- 2.39.5