From: Anders Kaseorg Date: Sat, 6 Nov 2010 07:15:06 +0000 (-0400) Subject: Linux: Fix prototypes for sys_setgroups_stub and sys32_setgroups_stub X-Git-Tag: upstream/1.8.0_pre1^2~4517 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=14980b477822ecc66e95f8c2a71f0fc11839afbd;p=packages%2Fo%2Fopenafs.git Linux: Fix prototypes for sys_setgroups_stub and sys32_setgroups_stub Fixes “warning: function declaration isn’t a prototype”. Change-Id: Idfff2a19496ee7d848800c3b913d779e52187021 Signed-off-by: Anders Kaseorg Reviewed-on: http://gerrit.openafs.org/3277 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- 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"); }