Convert estrto{l, ul} to estrtonum

Enough with this insanity!
This commit is contained in:
FRIGN
2015-01-30 16:52:44 +01:00
parent 8c359daee3
commit fd562481f3
19 changed files with 30 additions and 81 deletions

4
nice.c
View File

@@ -12,7 +12,7 @@
static void
usage(void)
{
eprintf("usage: nice [-n inc] cmd [arg ...]\n");
eprintf("usage: %s [-n inc] cmd [arg ...]\n", argv0);
}
int
@@ -23,7 +23,7 @@ main(int argc, char *argv[])
ARGBEGIN {
case 'n':
val = estrtol(EARGF(usage()), 10);
val = estrtonum(EARGF(usage()), PRIO_MIN, PRIO_MAX);
break;
default:
usage();