From 42cdaffd1067a24cea3c39c44f2ca89608da4ff7 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Tue, 18 Sep 2012 09:46:54 +0200 Subject: [PATCH] remove unused variable and make sleep ints unsigned --- ykcore/ykcore.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ykcore/ykcore.c b/ykcore/ykcore.c index aee4cbc..d643397 100644 --- a/ykcore/ykcore.c +++ b/ykcore/ykcore.c @@ -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 -- 2.39.5