diff options
author | Jim Meyering <jim@meyering.net> | 1995-08-05 03:13:16 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-08-05 03:13:16 +0000 |
commit | c3f2e694717cb1e1373c43211d706830d97cf306 (patch) | |
tree | cbc5be273744a75bf0caa2999a07f04670e045c3 /lib | |
parent | 86c9719f0ae748ed963185943946d1a20aa70f2b (diff) | |
download | coreutils-c3f2e694717cb1e1373c43211d706830d97cf306.tar.xz |
(isnumber): Rename to is_number.
(parse_user_spec): Rename uses, too.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/userspec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/userspec.c b/lib/userspec.c index c5ac3096c..d95780a1a 100644 --- a/lib/userspec.c +++ b/lib/userspec.c @@ -88,7 +88,7 @@ char *strdup (); otherwise return 0. */ static int -isnumber (str) +is_number (str) const char *str; { for (; *str; str++) @@ -156,7 +156,7 @@ parse_user_spec (spec_arg, uid, gid, username_arg, groupname_arg) if (pwd == NULL) { - if (!isnumber (u)) + if (!is_number (u)) error_msg = "invalid user"; else { @@ -202,7 +202,7 @@ parse_user_spec (spec_arg, uid, gid, username_arg, groupname_arg) grp = getgrnam (g); if (grp == NULL) { - if (!isnumber (g)) + if (!is_number (g)) error_msg = "invalid group"; else *gid = atoi (g); |