]> err.no Git - yubikey-personalization.old/commitdiff
ykchalresp.c: clang warnings about unsigned casts
authorClemens Lang <neverpanic@gmail.com>
Sat, 18 Feb 2012 16:48:52 +0000 (17:48 +0100)
committerClemens Lang <neverpanic@gmail.com>
Sat, 18 Feb 2012 16:48:52 +0000 (17:48 +0100)
unsigned char * and char * are used alike where casts would be needed to
compile warning-free

ykchalresp.c

index d268b4af9a250002de124e8bee81007d5e9277ee..cecfecdeadead2fd31ff131ddf4e55a0f5d93ef4 100644 (file)
@@ -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;