]> err.no Git - yubikey-personalization.old/commitdiff
Silence warning about implicit cast adding unsigned
authorClemens Lang <neverpanic@gmail.com>
Sat, 18 Feb 2012 16:43:14 +0000 (17:43 +0100)
committerClemens Lang <neverpanic@gmail.com>
Sat, 18 Feb 2012 16:43:14 +0000 (17:43 +0100)
yk_wait_for_key_status expects an unisgned char*, but char* given.

ykcore/ykcore.c

index c02d51f5a6fab3d72491034832c3214592475221..2ad29d2cf560f5ef165f9050caff002455051332 100644 (file)
@@ -436,7 +436,7 @@ int yk_read_response_from_key(YK_KEY *yk, uint8_t slot, unsigned int flags,
        fprintf(stderr, "YK_DEBUG: Read %i bytes from YubiKey :\n", expect_bytes);
 #endif
        /* Wait for the key to turn on RESP_PENDING_FLAG */
-       if (! yk_wait_for_key_status(yk, slot, flags, 1000, true, RESP_PENDING_FLAG, (char *) &data))
+       if (! yk_wait_for_key_status(yk, slot, flags, 1000, true, RESP_PENDING_FLAG, (unsigned char *) &data))
                return 0;
 
        /* The first part of the response was read by yk_wait_for_key_status(). We need