1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-16 15:11:52 +00:00

Back out previous commit. I was a bit overzealous: the fd_set size is

calculated dynamically here.
This commit is contained in:
Jacques Vidrine 2002-09-09 16:43:18 +00:00
parent acc005185b
commit c3e3619908
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103133
2 changed files with 0 additions and 4 deletions

View File

@ -1029,8 +1029,6 @@ main(argc, argv)
tv = &timeout;
} else
tv = NULL;
if (s >= FD_SETSIZE)
errx(1, "descriptor too big");
memset(fdmaskp, 0, fdmasks);
FD_SET(s, fdmaskp);
cc = select(s + 1, fdmaskp, NULL, NULL, tv);

View File

@ -934,8 +934,6 @@ wait_for_reply(sock, mhdr)
fdsn = howmany(sock + 1, NFDBITS) * sizeof(fd_mask);
if ((fdsp = (fd_set *)malloc(fdsn)) == NULL)
err(1, "malloc");
if (sock >= FD_SETSIZE)
errx(1, "descriptor too big");
memset(fdsp, 0, fdsn);
FD_SET(sock, fdsp);
wait.tv_sec = waittime; wait.tv_usec = 0;