Commit 020a496a authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Do not hardcode STDIN_FILENO == 0

parent 07ab6beb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)))