Changeset f954906 in mainline for uspace/srv/kbd/genarch/gsp.c


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.