[gmime] coding style fixes



commit c3f086305ea14062e2d20de2b7e59646f077f73c
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date:   Wed Mar 18 18:30:50 2020 -0400

    coding style fixes

 gmime/gmime-pkcs7-context.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gmime/gmime-pkcs7-context.c b/gmime/gmime-pkcs7-context.c
index 4030e413..8e34d4b2 100644
--- a/gmime/gmime-pkcs7-context.c
+++ b/gmime/gmime-pkcs7-context.c
@@ -382,9 +382,9 @@ GMimeCryptoContext *
 g_mime_pkcs7_context_new (void)
 {
 #ifdef ENABLE_CRYPTO
+       gpgme_keylist_mode_t keylist_mode;
        GMimePkcs7Context *pkcs7;
        gpgme_ctx_t ctx;
-       gpgme_keylist_mode_t keylist_mode;
        
        /* make sure GpgMe supports the CMS protocols */
        if (gpgme_engine_check_version (GPGME_PROTOCOL_CMS) != GPG_ERR_NO_ERROR)
@@ -398,16 +398,17 @@ g_mime_pkcs7_context_new (void)
        gpgme_set_protocol (ctx, GPGME_PROTOCOL_CMS);
        gpgme_set_textmode (ctx, FALSE);
        gpgme_set_armor (ctx, FALSE);
-
+       
        /* ensure that key listings are correctly validated, since we
           use user ID validity to determine what identity to report */
        keylist_mode = gpgme_get_keylist_mode (ctx);
-       if (! (keylist_mode & GPGME_KEYLIST_MODE_VALIDATE))
+       if (!(keylist_mode & GPGME_KEYLIST_MODE_VALIDATE)) {
                if (gpgme_set_keylist_mode (ctx, keylist_mode | GPGME_KEYLIST_MODE_VALIDATE) != 
GPG_ERR_NO_ERROR) {
                        gpgme_release (ctx);
                        return NULL;
                }
-
+       }
+       
        pkcs7->ctx = ctx;
        
        return (GMimeCryptoContext *) pkcs7;


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