Changeset f954906 in mainline


Ignore:
Timestamp:
2009-06-30T15:32:46Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
82346c50
Parents:
c063d96e
Message:

avoid compiler warnings and one small bug

Location:
uspace/srv/kbd
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/kbd/ctl/pc.c

    rc063d96e rf954906  
    208208                map_length = sizeof(scanmap_e0) / sizeof(int);
    209209                break;
     210        default:
     211                map = NULL;
     212                map_length = 0;
    210213        }
    211214
     
    219222        }
    220223
    221         if (scancode < 0 || scancode >= map_length)
     224        if ((scancode < 0) || ((size_t) scancode >= map_length))
    222225                return;
    223226
  • uspace/srv/kbd/genarch/gsp.c

    rc063d96e rf954906  
    245245        key[1] = t->input;
    246246
    247         hash_table_insert(&p->trans, &key, &t->link);
     247        hash_table_insert(&p->trans, key, &t->link);
    248248}
    249249
     
    277277
    278278        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));
    280281}
    281282
  • uspace/srv/kbd/layout/cz.c

    rc063d96e rf954906  
    400400                return parse_ms_carka(ev);
    401401        }
     402       
     403        return 0;
    402404}
    403405
  • uspace/srv/kbd/port/i8042.c

    rc063d96e rf954906  
    136136       
    137137        /* 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;
    140140        ipc_register_irq(sysinfo_value("kbd.inr"), device_assign_devno(), 0, &i8042_kbd);
    141141
Note: See TracChangeset for help on using the changeset viewer.