X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetugroups.c;h=2207b85a176f1fdd24fc852203e09a2f875b53d5;hb=b156173b313f1903489b8c0c74292de350637f5f;hp=e102f21ca1e90e70065713a15d8d84a20015fe25;hpb=17959d7c83195b5568ac4c311d2754971efd4b90;p=gnulib.git diff --git a/lib/getugroups.c b/lib/getugroups.c index e102f21ca..2207b85a1 100644 --- a/lib/getugroups.c +++ b/lib/getugroups.c @@ -1,6 +1,6 @@ /* getugroups.c -- return a list of the groups a user is in - Copyright (C) 1990, 1991, 1998-2000, 2003-2008 Free Software Foundation. + Copyright (C) 1990, 1991, 1998-2000, 2003-2009 Free Software Foundation. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -32,11 +32,11 @@ /* Some old header files might not declare setgrent, getgrent, and endgrent. If you don't have them at all, we can't implement this function. You lose! */ -struct group *getgrent (); +struct group *getgrent (void); #include -#define STREQ(s1, s2) ((strcmp (s1, s2) == 0)) +#define STREQ(s1, s2) (strcmp (s1, s2) == 0) /* Like `getgroups', but for user USERNAME instead of for the current process. Store at most MAXCOUNT group IDs in the GROUPLIST array.