dwm-meillo

diff main.c @ 266:e8aa8f6e3481

supplying NULL args in select
author Anselm R.Garbe <arg@10ksloc.org>
date Mon, 14 Aug 2006 07:40:20 +0200
parents 573b1c4a71a4
children e9dc5a9f9480
line diff
     1.1 --- a/main.c	Mon Aug 14 07:23:46 2006 +0200
     1.2 +++ b/main.c	Mon Aug 14 07:40:20 2006 +0200
     1.3 @@ -263,7 +263,7 @@
     1.4  			FD_SET(STDIN_FILENO, &rd);
     1.5  		FD_SET(xfd, &rd);
     1.6  
     1.7 -		i = select(xfd + 1, &rd, 0, 0, 0);
     1.8 +		i = select(xfd + 1, &rd, NULL, NULL, NULL);
     1.9  		if(i == -1 && errno == EINTR)
    1.10  			continue;
    1.11  		if(i < 0)