]> err.no Git - yubikey-personalization/commitdiff
fix a few warnings
authorKlas Lindfors <klas@yubico.com>
Mon, 17 Sep 2012 13:10:37 +0000 (15:10 +0200)
committerKlas Lindfors <klas@yubico.com>
Mon, 17 Sep 2012 13:10:37 +0000 (15:10 +0200)
ykpers.c

index 3538d8a00723ac8a38ecb184273a11eea9cdf6fe..013a4b4f0160e1a29d5ba1c677800d9212edab20 100644 (file)
--- a/ykpers.c
+++ b/ykpers.c
@@ -60,7 +60,7 @@ static const YK_CONFIG default_config1 = {
        0,                      /* extFlags */
        TKTFLAG_APPEND_CR,      /* tktFlags */
        0,                      /* cfgFlags */
-       0,                      /* ctrOffs */
+       {0},                    /* ctrOffs */
        0                       /* crc */
 };
 
@@ -74,12 +74,12 @@ static const YK_CONFIG default_config2 = {
        TKTFLAG_APPEND_CR,      /* tktFlags */
        /* cfgFlags */
        CFGFLAG_STATIC_TICKET | CFGFLAG_STRONG_PW1 | CFGFLAG_STRONG_PW2 | CFGFLAG_MAN_UPDATE,
-       0,                      /* ctrOffs */
+       {0},                    /* ctrOffs */
        0                       /* crc */
 };
 
 /* From nfcforum-ts-rtd-uri-1.0.pdf */
-static char *ndef_identifiers[] = {
+static const char *ndef_identifiers[] = {
        "http://www.",
        "https://www.",
        "http://",