From: Klas Lindfors Date: Mon, 17 Sep 2012 13:10:37 +0000 (+0200) Subject: fix a few warnings X-Git-Tag: v1.8.0~68 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a99029f5de13ce81e6facd5a4e1cfd9752e29060;p=yubikey-personalization fix a few warnings --- diff --git a/ykpers.c b/ykpers.c index 3538d8a..013a4b4 100644 --- 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://",