commit 93d614ea838ffb0f9f595a8d6d1c3f2d6419afb2
parent 8254bfcd5d85e8db245d0581d2739af0fd194242
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Tue, 21 May 2019 20:49:01 +0300
Fixed compiler warning
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
@@ -1188,6 +1188,7 @@ MHD_digest_auth_check (struct MHD_Connection *connection,
} skey; \
struct DigestAlgorithm da; \
\
+ do { \
switch (algo) { \
case MHD_DIGEST_ALG_MD5: \
da.digest_size = MD5_DIGEST_SIZE; \
@@ -1209,7 +1210,8 @@ MHD_digest_auth_check (struct MHD_Connection *connection,
da.update = &sha256_update; \
da.digest = &sha256_finish; \
break; \
- }
+ } \
+ } while(0)