diff options
author | nectar <nectar@FreeBSD.org> | 2002-09-09 18:51:59 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2002-09-09 18:51:59 +0000 |
commit | 8a8d92cece0845d63268c8ad2bff66cebb33d4aa (patch) | |
tree | 597b3084ab71543af2ae0d9a9b52e539bd60a286 /sbin/ping | |
parent | 8c0aa78c1bfd8dfcef0d53c462114020d798e2e6 (diff) | |
download | FreeBSD-src-8a8d92cece0845d63268c8ad2bff66cebb33d4aa.zip FreeBSD-src-8a8d92cece0845d63268c8ad2bff66cebb33d4aa.tar.gz |
In reference to previous commit: use err(3).
Noticed by: bde
Diffstat (limited to 'sbin/ping')
-rw-r--r-- | sbin/ping/ping.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index 3ba073a..0889122 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -648,10 +648,8 @@ main(argc, argv) fd_set rfds; check_status(); - if (s >= FD_SETSIZE) { - (void)fprintf(stderr, "descriptor too large"); - exit(EX_OSERR); - } + if (s >= FD_SETSIZE) + errx(EX_OSERR, "descriptor too large"); FD_ZERO(&rfds); FD_SET(s, &rfds); (void)gettimeofday(&now, NULL); |