From: Clemens Lang Date: Sat, 18 Feb 2012 16:53:00 +0000 (+0100) Subject: yubikey.h requires char *, cast to silence warning X-Git-Tag: v1.6.4~11 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a809a531d487be5f473b2ac124cf9ced8b5aec1;p=yubikey-personalization yubikey.h requires char *, cast to silence warning yubikey.h from yubico-c defines yubikey_hex_*() to have a char * as first parameter, where we use unisgned char[] here. Add a cast to silence the warning this generates. --- diff --git a/ykchalresp.c b/ykchalresp.c index cecfecd..f8bc188 100644 --- a/ykchalresp.c +++ b/ykchalresp.c @@ -237,9 +237,9 @@ int challenge_response(YK_KEY *yk, int slot, memset(output_buf, 0, sizeof(output_buf)); if (hmac) { - yubikey_hex_encode(output_buf, (char *)response, response_len); + yubikey_hex_encode((char *)output_buf, (char *)response, response_len); } else { - yubikey_modhex_encode(output_buf, (char *)response, response_len); + yubikey_modhex_encode((char *)output_buf, (char *)response, response_len); } printf("%s\n", output_buf);