projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e9b2fb
)
(isnumber): Rename to is_number.
author
Jim Meyering
<jim@meyering.net>
Sat, 5 Aug 1995 03:13:16 +0000
(
03:13
+0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 5 Aug 1995 03:13:16 +0000
(
03:13
+0000)
(parse_user_spec): Rename uses, too.
lib/userspec.c
patch
|
blob
|
history
diff --git
a/lib/userspec.c
b/lib/userspec.c
index c5ac3096c475a35b3e623db87f4f422da542bb65..d95780a1a635fe447fe5a97b800639f8d709e68e 100644
(file)
--- 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);