diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-04-19 16:19:36 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-04-19 16:19:36 +0200 |
commit | a5b7e3205d33f08e8c906e0c6337f09df20a0c4a (patch) | |
tree | d629147b029790703a18cb5a7454a763876640af | |
parent | dfce37da23850f62202cf88c31bfb9b21292d8f8 (diff) | |
download | curl-a5b7e3205d33f08e8c906e0c6337f09df20a0c4a.tar.gz |
Curl_HMAC_MD5: fix the array init to not warn with picky compilers
-rw-r--r-- | lib/md5.c | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -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. */ + } }; |