]> err.no Git - yubikey-personalization.old/commitdiff
ykchalresp.c: Fix clang format warning
authorClemens Lang <neverpanic@gmail.com>
Sat, 18 Feb 2012 16:45:49 +0000 (17:45 +0100)
committerClemens Lang <neverpanic@gmail.com>
Sat, 18 Feb 2012 16:45:49 +0000 (17:45 +0100)
warning: conversion specifies type 'int' but the argument has type 'unsigned long'

ykchalresp.c

index 0d719d183b5482387f42e9b8da87c693a490c807..d268b4af9a250002de124e8bee81007d5e9277ee 100644 (file)
@@ -127,7 +127,7 @@ int parse_args(int argc, char **argv,
                int strl = strlen(argv[optind]);
 
                if (strl > sizeof(decoded) * 2) {
-                       fprintf(stderr, "Hex-encoded challenge too long (max %i chars)\n",
+                       fprintf(stderr, "Hex-encoded challenge too long (max %lu chars)\n",
                                sizeof(decoded) * 2);
                        return 0;
                }