Changeset f954906 in mainline
- Timestamp:
- 2009-06-30T15:32:46Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 82346c50
- Parents:
- c063d96e
- Location:
- uspace/srv/kbd
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/ctl/pc.c
rc063d96e rf954906 208 208 map_length = sizeof(scanmap_e0) / sizeof(int); 209 209 break; 210 default: 211 map = NULL; 212 map_length = 0; 210 213 } 211 214 … … 219 222 } 220 223 221 if ( scancode < 0 || scancode >= map_length)224 if ((scancode < 0) || ((size_t) scancode >= map_length)) 222 225 return; 223 226 -
uspace/srv/kbd/genarch/gsp.c
rc063d96e rf954906 245 245 key[1] = t->input; 246 246 247 hash_table_insert(&p->trans, &key, &t->link);247 hash_table_insert(&p->trans, key, &t->link); 248 248 } 249 249 … … 277 277 278 278 t = hash_table_get_instance(item, gsp_trans_t, link); 279 return (key[0] == t->old_state && key[1] == t->input); 279 return ((key[0] == (unsigned long) t->old_state) 280 && (key[1] == (unsigned long) t->input)); 280 281 } 281 282 -
uspace/srv/kbd/layout/cz.c
rc063d96e rf954906 400 400 return parse_ms_carka(ev); 401 401 } 402 403 return 0; 402 404 } 403 405 -
uspace/srv/kbd/port/i8042.c
rc063d96e rf954906 136 136 137 137 /* Enable kbd */ 138 i8042_kbd.cmds[0].addr = &((i8042_t *) i8042_kernel)->status;139 i8042_kbd.cmds[3].addr = &((i8042_t *) i8042_kernel)->data;138 i8042_kbd.cmds[0].addr = (void *) &((i8042_t *) i8042_kernel)->status; 139 i8042_kbd.cmds[3].addr = (void *) &((i8042_t *) i8042_kernel)->data; 140 140 ipc_register_irq(sysinfo_value("kbd.inr"), device_assign_devno(), 0, &i8042_kbd); 141 141
Note:
See TracChangeset
for help on using the changeset viewer.