diff options
author | Rob Landley <rob@landley.net> | 2013-11-28 21:11:34 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-11-28 21:11:34 -0600 |
commit | b5e74165d1462d69deaecbf14305dbf2eee746d5 (patch) | |
tree | 039b23d58a1316bd69fcb68b4743800451c34fb9 /lib/pending.c | |
parent | 5ec4ab3113dcc813b6040d7ded38e297df99dc0e (diff) | |
download | toybox-b5e74165d1462d69deaecbf14305dbf2eee746d5.tar.gz toybox-b5e74165d1462d69deaecbf14305dbf2eee746d5.tar.bz2 toybox-b5e74165d1462d69deaecbf14305dbf2eee746d5.zip |
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.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/pending.c b/lib/pending.c index a804d5b..df3207e 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); |