aboutsummaryrefslogtreecommitdiff
path: root/lib/pending.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-11-28 21:11:34 -0600
committerRob Landley <rob@landley.net>2013-11-28 21:11:34 -0600
commitb5e74165d1462d69deaecbf14305dbf2eee746d5 (patch)
tree039b23d58a1316bd69fcb68b4743800451c34fb9 /lib/pending.c
parent5ec4ab3113dcc813b6040d7ded38e297df99dc0e (diff)
downloadtoybox-b5e74165d1462d69deaecbf14305dbf2eee746d5.tar.gz
Oops, cleaned up ifconfig uses atolx_range() instead of get_int_list(). Check that in.
Diffstat (limited to 'lib/pending.c')
-rw-r--r--lib/pending.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/pending.c b/lib/pending.c
index a804d5b8..df3207ef 100644
--- a/lib/pending.c
+++ b/lib/pending.c
@@ -30,24 +30,6 @@ void names_to_pid(char **names, int (*callback)(pid_t pid, char *name))
closedir(dp);
}
-/*
- * used to get the interger value.
- */
-unsigned long get_int_value(const char *numstr, unsigned long lowrange, unsigned long highrange)
-{
- unsigned long rvalue = 0;
- char *ptr;
-
- if (!isdigit(*numstr)) perror_exit("bad number '%s'", numstr);
- errno = 0;
- rvalue = strtoul(numstr, &ptr, 10);
-
- if (errno || numstr == ptr || *ptr || rvalue < lowrange || rvalue > highrange)
- perror_exit("bad number '%s'", numstr);
-
- return rvalue;
-}
-
void daemonize(void)
{
int fd = open("/dev/null", O_RDWR);