diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2021-09-21 21:33:21 +0200 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2021-09-21 21:33:21 +0200 | 
| commit | 9fb7c1bbc8b25a3e1e45cf353999d997a3f6c92e (patch) | |
| tree | 55a5d963c98329b0b47d2e9954a324c397400014 /src | |
| parent | 6c6bb8adaaf3c4e20b5a1e5dbdc02e25b0a00e85 (diff) | |
Do not hardcode STDIN_FILENO == 0
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -210,7 +210,7 @@ int feh_main_iteration(int block)  				   in that */  				feh_handle_timer();  			} -			else if ((count > 0) && (FD_ISSET(0, &fdset))) +			else if ((count > 0) && (FD_ISSET(STDIN_FILENO, &fdset)))  				feh_event_handle_stdin();  #ifdef HAVE_INOTIFY  			else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset))) @@ -227,7 +227,7 @@ int feh_main_iteration(int block)  					&& ((errno == ENOMEM) || (errno == EINVAL)  						|| (errno == EBADF)))  				eprintf("Connection to X display lost"); -			else if ((count > 0) && (FD_ISSET(0, &fdset))) +			else if ((count > 0) && (FD_ISSET(STDIN_FILENO, &fdset)))  				feh_event_handle_stdin();  #ifdef HAVE_INOTIFY  			else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset))) | 
