Changeset f954906 in mainline for uspace/srv/kbd/ctl


Ignore:
Timestamp:
2009-06-30T15:32:46Z (16 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/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
Note: See TracChangeset for help on using the changeset viewer.