mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 00:12:45 +00:00
In reference to previous commit: use err(3).
Noticed by: bde
This commit is contained in:
parent
fefe985dc6
commit
7e5bbd6847
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103146
@ -648,10 +648,8 @@ main(argc, argv)
|
|||||||
fd_set rfds;
|
fd_set rfds;
|
||||||
|
|
||||||
check_status();
|
check_status();
|
||||||
if (s >= FD_SETSIZE) {
|
if (s >= FD_SETSIZE)
|
||||||
(void)fprintf(stderr, "descriptor too large");
|
errx(EX_OSERR, "descriptor too large");
|
||||||
exit(EX_OSERR);
|
|
||||||
}
|
|
||||||
FD_ZERO(&rfds);
|
FD_ZERO(&rfds);
|
||||||
FD_SET(s, &rfds);
|
FD_SET(s, &rfds);
|
||||||
(void)gettimeofday(&now, NULL);
|
(void)gettimeofday(&now, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user