gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 04/10: Fixed compiler warning


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 04/10: Fixed compiler warning
Date: Tue, 21 May 2019 21:29:08 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 93d614ea838ffb0f9f595a8d6d1c3f2d6419afb2
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Tue May 21 20:49:01 2019 +0300

    Fixed compiler warning
---
 src/microhttpd/digestauth.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 06c1a5a9..c2783dd7 100644
--- 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)
 
 
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]