]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Curl_HMAC_MD5: fix the array init to not warn with picky compilers
authorDaniel Stenberg <daniel@haxx.se>
Mon, 19 Apr 2010 14:19:36 +0000 (16:19 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 19 Apr 2010 14:19:36 +0000 (16:19 +0200)
lib/md5.c

index 0908cd8a8c67204f98dd7b9b70dd4bfb71804d34..3f715ba9c43ca256877e12d8e6b56adca785c80a 100644 (file)
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -371,13 +371,15 @@ static void Decode (UINT4 *output,
 
 #endif /* USE_GNUTLS */
 
-const HMAC_params Curl_HMAC_MD5[1] = {
-  (HMAC_hinit_func) MD5_Init,           /* Hash initialization function. */
-  (HMAC_hupdate_func) MD5_Update,       /* Hash update function. */
-  (HMAC_hfinal_func) MD5_Final,         /* Hash computation end function. */
-  sizeof(MD5_CTX),                      /* Size of hash context structure. */
-  64,                                   /* Maximum key length. */
-  16                                    /* Result size. */
+const HMAC_params Curl_HMAC_MD5[] = {
+  {
+    (HMAC_hinit_func) MD5_Init,           /* Hash initialization function. */
+    (HMAC_hupdate_func) MD5_Update,       /* Hash update function. */
+    (HMAC_hfinal_func) MD5_Final,         /* Hash computation end function. */
+    sizeof(MD5_CTX),                      /* Size of hash context structure. */
+    64,                                   /* Maximum key length. */
+    16                                    /* Result size. */
+  }
 };