aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-04-19 16:19:36 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-04-19 16:19:36 +0200
commita5b7e3205d33f08e8c906e0c6337f09df20a0c4a (patch)
treed629147b029790703a18cb5a7454a763876640af /lib
parentdfce37da23850f62202cf88c31bfb9b21292d8f8 (diff)
Curl_HMAC_MD5: fix the array init to not warn with picky compilers
Diffstat (limited to 'lib')
-rw-r--r--lib/md5.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/md5.c b/lib/md5.c
index 0908cd8a8..3f715ba9c 100644
--- 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. */
+ }
};