From 2d1a05ce75eedda1244b4ad0ccb7cfccfd6322fc Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 25 Aug 2007 09:29:27 +0000 Subject: [PATCH] Revert r24158, it is not necessary with unsigned bitfield git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24161 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/input/input.c b/input/input.c index 39ea408f93..59c9ae56e9 100644 --- a/input/input.c +++ b/input/input.c @@ -609,8 +609,7 @@ mp_input_add_cmd_fd(int fd, int select, mp_cmd_func_t read_func, mp_close_func_t cmd_fds[num_cmd_fd].fd = fd; cmd_fds[num_cmd_fd].read_func = read_func ? read_func : mp_input_default_cmd_func; cmd_fds[num_cmd_fd].close_func = close_func; - if (!select) - cmd_fds[num_cmd_fd].no_select = 1; + cmd_fds[num_cmd_fd].no_select = !select; num_cmd_fd++; return 1; @@ -669,8 +668,7 @@ mp_input_add_key_fd(int fd, int select, mp_key_func_t read_func, mp_close_func_t key_fds[num_key_fd].fd = fd; key_fds[num_key_fd].read_func = read_func; key_fds[num_key_fd].close_func = close_func; - if (!select) - key_fds[num_key_fd].no_select = 1; + key_fds[num_key_fd].no_select = !select; num_key_fd++; return 1;