From: Clemens Lang Date: Sat, 18 Feb 2012 16:48:52 +0000 (+0100) Subject: ykchalresp.c: clang warnings about unsigned casts X-Git-Tag: v1.6.4~12 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b0c172aa505138fe92089567a5940ef39481ad5;p=yubikey-personalization.old ykchalresp.c: clang warnings about unsigned casts unsigned char * and char * are used alike where casts would be needed to compile warning-free --- diff --git a/ykchalresp.c b/ykchalresp.c index d268b4a..cecfecd 100644 --- a/ykchalresp.c +++ b/ykchalresp.c @@ -148,8 +148,8 @@ int parse_args(int argc, char **argv, *challenge = (unsigned char *) &decoded; *challenge_len = strl / 2; } else { - *challenge = argv[optind]; - *challenge_len = strlen(*challenge); + *challenge = (unsigned char *) argv[optind]; + *challenge_len = strlen(argv[optind]); } return 1;