changeset 24141:a911d41e4e99

Revert r24158, it is not necessary with unsigned bitfield
author reimar
date Sat, 25 Aug 2007 09:29:27 +0000
parents e92ef0d2a976
children 931b5401fa01
files input/input.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Sat Aug 25 09:27:43 2007 +0000
+++ b/input/input.c	Sat Aug 25 09:29:27 2007 +0000
@@ -609,8 +609,7 @@
   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 @@
   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;