diff options
author | kib <kib@FreeBSD.org> | 2011-01-04 17:27:17 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-01-04 17:27:17 +0000 |
commit | bc74bed50dc1e0f7b561de14af7ef7d8ea72ce62 (patch) | |
tree | d124eea24f1b1ba58bbe824848557356b3350a82 /usr.sbin | |
parent | 6f7962b4d675f550de0dfe6d628308ed514f4a5d (diff) | |
download | FreeBSD-src-bc74bed50dc1e0f7b561de14af7ef7d8ea72ce62.zip FreeBSD-src-bc74bed50dc1e0f7b561de14af7ef7d8ea72ce62.tar.gz |
Use errx() instead of err() in parseint. There is usually no interesting
information in errno.
Noted by: Garrett Cooper <yanegomi gmail com>
MFC after: 1 week
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rtprio/rtprio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rtprio/rtprio.c b/usr.sbin/rtprio/rtprio.c index 5d1224c..38dade8 100644 --- a/usr.sbin/rtprio/rtprio.c +++ b/usr.sbin/rtprio/rtprio.c @@ -133,9 +133,9 @@ parseint(const char *str, const char *errname) errno = 0; res = strtol(str, &endp, 10); if (errno != 0 || endp == str || *endp != '\0') - err(1, "%s must be a number", errname); + errx(1, "%s must be a number", errname); if (res >= INT_MAX) - err(1, "Integer overflow parsing %s", errname); + errx(1, "Integer overflow parsing %s", errname); return (res); } |