summaryrefslogtreecommitdiff
path: root/lib/userspec.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-08-05 03:13:16 +0000
committerJim Meyering <jim@meyering.net>1995-08-05 03:13:16 +0000
commitc3f2e694717cb1e1373c43211d706830d97cf306 (patch)
treecbc5be273744a75bf0caa2999a07f04670e045c3 /lib/userspec.c
parent86c9719f0ae748ed963185943946d1a20aa70f2b (diff)
downloadcoreutils-c3f2e694717cb1e1373c43211d706830d97cf306.tar.xz
(isnumber): Rename to is_number.
(parse_user_spec): Rename uses, too.
Diffstat (limited to 'lib/userspec.c')
-rw-r--r--lib/userspec.c6
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);