X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetugroups.c;h=dc8089b6711ba92d31780a4b023cb5639ab7c1c2;hb=cd19e83484e2c0ff9fd68e7439dd97128c6a2703;hp=b17563e89af8acd812c277a88f616485b3f6955e;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/lib/getugroups.c b/lib/getugroups.c index b17563e89..dc8089b67 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-2009 Free Software Foundation. + Copyright (C) 1990-1991, 1998-2000, 2003-2011 Free Software Foundation, Inc. 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 @@ -33,10 +33,10 @@ can do is fail with ENOSYS. */ int -getugroups (int maxcount _UNUSED_PARAMETER_, - gid_t *grouplist _UNUSED_PARAMETER_, - char const *username _UNUSED_PARAMETER_, - gid_t gid _UNUSED_PARAMETER_) +getugroups (int maxcount _GL_UNUSED, + gid_t *grouplist _GL_UNUSED, + char const *username _GL_UNUSED, + gid_t gid _GL_UNUSED) { errno = ENOSYS; return -1; @@ -45,7 +45,7 @@ getugroups (int maxcount _UNUSED_PARAMETER_, #else /* HAVE_GRP_H */ # include -# define STREQ(s1, s2) (strcmp (s1, s2) == 0) +# define STREQ(a, b) (strcmp (a, b) == 0) /* Like `getgroups', but for user USERNAME instead of for the current process. Store at most MAXCOUNT group IDs in the GROUPLIST array.