From 73749ac94076af046344aea0ec926a53e61affd4 Mon Sep 17 00:00:00 2001 From: Clemens Lang Date: Sat, 18 Feb 2012 17:43:14 +0100 Subject: [PATCH] Silence warning about implicit cast adding unsigned yk_wait_for_key_status expects an unisgned char*, but char* given. --- ykcore/ykcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5