Browse Source

supplying NULL args in select

Anselm R.Garbe 19 years ago
parent
commit
2c66b422e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.c

+ 1 - 1
main.c

@@ -263,7 +263,7 @@ main(int argc, char *argv[])
 			FD_SET(STDIN_FILENO, &rd);
 		FD_SET(xfd, &rd);
 
-		i = select(xfd + 1, &rd, 0, 0, 0);
+		i = select(xfd + 1, &rd, NULL, NULL, NULL);
 		if(i == -1 && errno == EINTR)
 			continue;
 		if(i < 0)