X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fuserspec.c;h=cb1f8a73fda6556bb8518802c4a51cfde0a81704;hb=f755ca1568887fb854b2362855096cb9ff3f3e00;hp=dd1d88a946758aa40a655acac2a38513ab5b260b;hpb=428e91077ead8dc468ab1401898eccd52c7ba7bb;p=gnulib.git diff --git a/lib/userspec.c b/lib/userspec.c index dd1d88a94..cb1f8a73f 100644 --- a/lib/userspec.c +++ b/lib/userspec.c @@ -1,5 +1,5 @@ /* userspec.c -- Parse a user and group string. - Copyright (C) 1989, 1990, 1991, 1992, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1989-1992, 1997, 1998 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 @@ -93,8 +93,7 @@ char *strdup (); otherwise return 0. */ static int -is_number (str) - const char *str; +is_number (const char *str) { for (; *str; str++) if (!isdigit (*str)) @@ -115,11 +114,8 @@ is_number (str) Return NULL if successful, a static error message string if not. */ const char * -parse_user_spec (spec_arg, uid, gid, username_arg, groupname_arg) - const char *spec_arg; - uid_t *uid; - gid_t *gid; - char **username_arg, **groupname_arg; +parse_user_spec (const char *spec_arg, uid_t *uid, gid_t *gid, + char **username_arg, char **groupname_arg) { static const char *tired = "virtual memory exhausted"; const char *error_msg;