Don't require the value of FD_ISSET to be exactly one.
authordrepper <drepper>
Tue, 18 Nov 1997 02:35:17 +0000 (02:35 +0000)
committerdrepper <drepper>
Tue, 18 Nov 1997 02:35:17 +0000 (02:35 +0000)
misc/tst-fdset.c

index ddd25c3..14372cf 100644 (file)
@@ -42,7 +42,7 @@ main (void)
       fputs (", set", stdout);
       FD_SET (i, &set);
       fputs (", check:", stdout);
-      if (FD_ISSET (i, &set) == 1)
+      if (FD_ISSET (i, &set))
        fputs ("ok", stdout);
       else
        {