diff options
Diffstat (limited to 'sbin/ping/ping.c')
-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); |