syscalls/setgid: fixed a compiling error
PATCH 1/1 syscalls/setgid: fixed a compiling error
commit 7dc42c97 did some clean up, but brought some typos:
1. getpwnam() is defined in /usr/include/pwd.h,
it doesn't need 'static', or remove getpwnam() declaration.
2. added duplicated 'static' key word.
Signed-off-by Zhouping Liu <[email protected]>
--- testcases/kernel/syscalls/setgid/setgid03.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
testcases/kernel/syscalls/setgid/setgid03.c +3 -3
@@ -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) {
Signature · 13 lines
1.7.11.7 ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. Consolidate legacy IT systems to a single system of record for IT 2. Standardize and globalize service processes across IT 3. Implement zero-touch automation to replace manual, redundant tasks http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Hi!
Quoted 19 lines
commit
7dc42c97did some clean up, but brought some typos:
1.getpwnam()is defined in/usr/include/pwd.h,
it doesn't need 'static', or removegetpwnam()declaration.
2. added duplicated 'static' key word.Signed-off-by Zhouping Liu <[email protected]>--- testcases/kernel/syscalls/setgid/setgid03.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)testcases/kernel/syscalls/setgid/setgid03.c +0
-1@@ -33,11 +33,11 @@ int TST_TOTAL = 1;static char ltpuser1[] ="nobody" ;static char root[] ="root" ; -static struct passwd *getpwnam (), *ltpuser1pwent, *rootpwent;
testcases/kernel/syscalls/setgid/setgid03.c int TST_TOTAL = 1; · line 43
Quoted 10 lines
testcases/kernel/syscalls/setgid/setgid03.c +3
-2+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) {
Missed that, thanks.
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list