summaryrefslogtreecommitdiff
path: root/lib/userspec.c
diff options
context:
space:
mode:
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);