Changes in uspace/srv/hid/input/ctl/pc.c [1875a0c:60e5a856] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/ctl/pc.c
r1875a0c r60e5a856 43 43 #include <gsp.h> 44 44 45 static void pc_ctl_parse (sysarg_t);45 static void pc_ctl_parse_scancode(int); 46 46 static int pc_ctl_init(kbd_dev_t *); 47 static void pc_ctl_set_ind(kbd_dev_t *, unsigned int);47 static void pc_ctl_set_ind(kbd_dev_t *, unsigned); 48 48 49 49 kbd_ctl_ops_t pc_ctl = { 50 .parse = pc_ctl_parse,50 .parse_scancode = pc_ctl_parse_scancode, 51 51 .init = pc_ctl_init, 52 52 .set_ind = pc_ctl_set_ind … … 215 215 } 216 216 217 static void pc_ctl_parse (sysarg_t scancode)217 static void pc_ctl_parse_scancode(int scancode) 218 218 { 219 219 kbd_event_type_t type; … … 257 257 } 258 258 259 if ((s ize_t) scancode >= map_length)259 if ((scancode < 0) || ((size_t) scancode >= map_length)) 260 260 return; 261 261 262 262 key = map[scancode]; 263 263 if (key != 0) 264 kbd_push_ev ent(kbd_dev, type, key);264 kbd_push_ev(kbd_dev, type, key); 265 265 } 266 266
Note:
See TracChangeset
for help on using the changeset viewer.