From: Cyril H. <su...@li...> - 2013-09-13 11:51:17
|
The branch, master, has been updated via 3a7395c6a04622a848e472426ab28ecc13a81b6b (commit) from 565f46aaa29bc58d9fec4f62e5782d075969f2a0 (commit) - Log ----------------------------------------------------------------- commit 3a7395c6a04622a848e472426ab28ecc13a81b6b Author: Vinson Lee <vl...@tw...> Date: Thu Sep 12 13:24:39 2013 -0700 setgid03.c: fix build This patch fixes build errors introduced with commit 7dc42c97696f135e1fef92e612ecc66bf8d74318. setgid03.c:36:23: error: static declaration of âgetpwnamâ follows non-static declaration In file included from setgid03.c:24:0: /usr/include/pwd.h:117:23: note: previous declaration of âgetpwnamâ was here setgid03.c:39:1: error: duplicate âstaticâ setgid03.c:40:1: error: duplicate âstaticâ Signed-off-by: Vinson Lee <vl...@tw...> Signed-off-by: Zhouping Liu <zl...@re...> Signed-off-by: Jan Stancek <jst...@re...> ----------------------------------------------------------------------- Summary of changes: testcases/kernel/syscalls/setgid/setgid03.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testcases/kernel/syscalls/setgid/setgid03.c b/testcases/kernel/syscalls/setgid/setgid03.c index 8b71401..8c76556 100644 --- a/testcases/kernel/syscalls/setgid/setgid03.c +++ b/testcases/kernel/syscalls/setgid/setgid03.c @@ -33,11 +33,11 @@ int TST_TOTAL = 1; static char ltpuser1[] = "nobody"; static char root[] = "root"; -static struct passwd *getpwnam(), *ltpuser1pwent, *rootpwent; +static struct passwd *ltpuser1pwent, *rootpwent; static gid_t mygid; -static static void setup(void); -static static void cleanup(void); +static void setup(void); +static void cleanup(void); int main(int ac, char **av) { hooks/post-receive -- ltp |