]> err.no Git - yubikey-personalization/commitdiff
remove unused variable and make sleep ints unsigned
authorKlas Lindfors <klas@yubico.com>
Tue, 18 Sep 2012 07:46:54 +0000 (09:46 +0200)
committerKlas Lindfors <klas@yubico.com>
Tue, 18 Sep 2012 07:46:54 +0000 (09:46 +0200)
ykcore/ykcore.c

index aee4cbc6d67fb7a96439aa50b366bacb8b32dde6..d643397fde5326978a208e6895d9e43d7ed727f5 100644 (file)
@@ -375,10 +375,9 @@ int yk_wait_for_key_status(YK_KEY *yk, uint8_t slot, unsigned int flags,
                           unsigned char *last_data)
 {
        unsigned char data[FEATURE_RPT_SIZE];
-       unsigned int bytes_read;
 
-       int sleepval = 10;
-       int slept_time = 0;
+       unsigned int sleepval = 10;
+       unsigned int slept_time = 0;
        int blocking = 0;
 
        /* Non-zero slot breaks on Windows (libusb-1.0.8-win32), while working fine