Coverity: UNREACHABLE: CID 426, 425, 424, 423, 422, 421
authorNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 15 Jan 2012 03:05:53 +0000 (22:05 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 15 Jan 2012 03:05:53 +0000 (22:05 -0500)
* src/openssl.c (ossl_digest_fun): Just appease Coverity and add
do the while(0)...
* src/openssl.c (ossl_cipher_fun): Ditto.
* src/openssl.c (OSSL_CHECK_PROCESS): Ditto.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/openssl.c

index 5ad630b..6c59082 100644 (file)
@@ -494,7 +494,7 @@ This yields a plain list of symbols.
 
 
 #define ossl_digest_fun(var, fun)                                      \
-{                                                                      \
+do {                                                                   \
        int __kl;                                                       \
        const EVP_MD *__md;                                             \
                                                                        \
@@ -569,7 +569,7 @@ Return the block size of DIGEST in bytes.
 
 
 #define ossl_cipher_fun(var, fun)                                      \
-{                                                                      \
+do {                                                                   \
        int __kl;                                                       \
        const EVP_CIPHER *__ciph;                                       \
                                                                        \
@@ -3430,7 +3430,7 @@ init_ssl_io_handles(Lisp_SSL_CONN *s, int flags)
 
 /* Advanced step-by-step initialisation */
 #define OSSL_CHECK_PROCESS(process)                                    \
-{                                                                      \
+do {                                                                   \
        /* Make sure the process is really alive.  */                   \
        if (!EQ(XPROCESS(process)->status_symbol, Qrun))                \
                error("Network stream %s not alive",                    \