From: Clemens Lang Date: Sat, 18 Feb 2012 16:43:14 +0000 (+0100) Subject: Silence warning about implicit cast adding unsigned X-Git-Tag: v1.6.4~15 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73749ac94076af046344aea0ec926a53e61affd4;p=yubikey-personalization Silence warning about implicit cast adding unsigned yk_wait_for_key_status expects an unisgned char*, but char* given. --- diff --git a/ykcore/ykcore.c b/ykcore/ykcore.c index c02d51f..2ad29d2 100644 --- a/ykcore/ykcore.c +++ b/ykcore/ykcore.c @@ -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