]> granicus.if.org Git - neomutt/commitdiff
clang-format
authorRichard Russon <rich@flatcap.org>
Mon, 10 Dec 2018 13:52:51 +0000 (13:52 +0000)
committerRichard Russon <rich@flatcap.org>
Mon, 10 Dec 2018 13:52:51 +0000 (13:52 +0000)
hdrline.c
hook.c
imap/imap.c
maildir/maildir.c
ncrypt/crypt_gpgme.c
notmuch/mutt_notmuch.c
send.c

index 93917f6834a51f0b7c52ddb1bbd5de583f70a3f7..e9775f40f78843dff80ae74d5a82fc9d0990b58e 100644 (file)
--- a/hdrline.c
+++ b/hdrline.c
@@ -69,13 +69,13 @@ enum FlagChars
   FLAG_CHAR_IMPORTANT,      ///< Character denoting a important (flagged) email
   FLAG_CHAR_DELETED,        ///< Character denoting a deleted email
   FLAG_CHAR_DELETED_ATTACH, ///< Character denoting a deleted attachment
-  FLAG_CHAR_REPLIED,        ///< Character denoting an email that has been replied to
-  FLAG_CHAR_OLD,            ///< Character denoting an email that has been read
-  FLAG_CHAR_NEW,            ///< Character denoting an unread email
-  FLAG_CHAR_OLD_THREAD,     ///< Character denoting a thread of emails that has been read
-  FLAG_CHAR_NEW_THREAD,     ///< Character denoting a thread containing at least one new email
-  FLAG_CHAR_SEMPTY,         ///< Character denoting a read email, $index_format %S expando
-  FLAG_CHAR_ZEMPTY,         ///< Character denoting a read email, $index_format %Z expando
+  FLAG_CHAR_REPLIED, ///< Character denoting an email that has been replied to
+  FLAG_CHAR_OLD,     ///< Character denoting an email that has been read
+  FLAG_CHAR_NEW,     ///< Character denoting an unread email
+  FLAG_CHAR_OLD_THREAD, ///< Character denoting a thread of emails that has been read
+  FLAG_CHAR_NEW_THREAD, ///< Character denoting a thread containing at least one new email
+  FLAG_CHAR_SEMPTY, ///< Character denoting a read email, $index_format %S expando
+  FLAG_CHAR_ZEMPTY, ///< Character denoting a read email, $index_format %Z expando
 };
 
 /**
diff --git a/hook.c b/hook.c
index d2922dd61a91b0069a61fdbb8fd56062c0e2d9ff..34d8e5e327b7d06f3d0cc69e8bb6571a22d06cd5 100644 (file)
--- a/hook.c
+++ b/hook.c
@@ -454,8 +454,7 @@ void mutt_message_hook(struct Mailbox *m, struct Email *e, int type)
 
     if (hook->type & type)
     {
-      if ((mutt_pattern_exec(hook->pattern, 0, m, e, &cache) > 0) ^
-          hook->regex.not)
+      if ((mutt_pattern_exec(hook->pattern, 0, m, e, &cache) > 0) ^ hook->regex.not)
       {
         if (mutt_parse_rc_line(hook->command, &token, &err) == -1)
         {
index 80cf8e90f403ff4144ee6ff944a686b7e6e029c0..23ff9207eb98c4ff1bb101057da41738f5acb601 100644 (file)
@@ -782,7 +782,6 @@ void imap_expunge_mailbox(struct Mailbox *m)
   int cacheno;
   short old_sort;
 
-
 #ifdef USE_HCACHE
   mdata->hcache = imap_hcache_open(adata, mdata);
 #endif
index 9dfd3de434aa22a3240ab6a54cf19bddfaa2958e..20f388a96ca7c17484de02ab89b886719c6301c8 100644 (file)
@@ -64,7 +64,8 @@
  *
  * Checks the specified maildir subdir (cur or new) for new mail or mail counts.
  */
-static void maildir_check_dir(struct Mailbox *m, const char *dir_name, bool check_new, bool check_stats)
+static void maildir_check_dir(struct Mailbox *m, const char *dir_name,
+                              bool check_new, bool check_stats)
 {
   DIR *dirp = NULL;
   struct dirent *de = NULL;
index 41761ec9a728deb215777f0ecb0089227b393dec..eee39e3f5216c9ecc98a32c6b4d454767072649f 100644 (file)
@@ -3950,16 +3950,16 @@ static unsigned int key_check_cap(gpgme_key_t key, enum KeyCap cap)
  */
 enum KeyInfo
 {
-  KIP_NAME = 0,       ///< PGP Key field: Name
-  KIP_AKA,            ///< PGP Key field: aka (Also Known As)
-  KIP_VALID_FROM,     ///< PGP Key field: Valid From date
-  KIP_VALID_TO,       ///< PGP Key field: Valid To date
-  KIP_KEY_TYPE,       ///< PGP Key field: Key Type
-  KIP_KEY_USAGE,      ///< PGP Key field: Key Usage
-  KIP_FINGERPRINT,    ///< PGP Key field: Fingerprint
-  KIP_SERIAL_NO,      ///< PGP Key field: Serial number
-  KIP_ISSUED_BY,      ///< PGP Key field: Issued By
-  KIP_SUBKEY,         ///< PGP Key field: Subkey
+  KIP_NAME = 0,    ///< PGP Key field: Name
+  KIP_AKA,         ///< PGP Key field: aka (Also Known As)
+  KIP_VALID_FROM,  ///< PGP Key field: Valid From date
+  KIP_VALID_TO,    ///< PGP Key field: Valid To date
+  KIP_KEY_TYPE,    ///< PGP Key field: Key Type
+  KIP_KEY_USAGE,   ///< PGP Key field: Key Usage
+  KIP_FINGERPRINT, ///< PGP Key field: Fingerprint
+  KIP_SERIAL_NO,   ///< PGP Key field: Serial number
+  KIP_ISSUED_BY,   ///< PGP Key field: Issued By
+  KIP_SUBKEY,      ///< PGP Key field: Subkey
   KIP_MAX,
 };
 
index a90c0ccac8369c2d74943a934b2d82255e11db73..46c7223a2b691c53a351d80ed27ed5ce0fd80074 100644 (file)
@@ -1710,15 +1710,14 @@ char *nm_uri_from_query(struct Mailbox *m, char *buf, size_t buflen)
 
   if (get_limit(mdata) != NmDbLimit)
   {
-    added = snprintf(uri, sizeof(uri),
-        "%s%s?type=%s&limit=%d&query=", NmUriProtocol, nm_db_get_filename(m),
-        query_type_to_string(mdata->query_type), get_limit(mdata));
+    added = snprintf(uri, sizeof(uri), "%s%s?type=%s&limit=%d&query=", NmUriProtocol,
+                     nm_db_get_filename(m),
+                     query_type_to_string(mdata->query_type), get_limit(mdata));
   }
   else
   {
-    added = snprintf(uri, sizeof(uri),
-        "%s%s?type=%s&query=", NmUriProtocol, nm_db_get_filename(m),
-        query_type_to_string(mdata->query_type));
+    added = snprintf(uri, sizeof(uri), "%s%s?type=%s&query=", NmUriProtocol,
+                     nm_db_get_filename(m), query_type_to_string(mdata->query_type));
   }
 
   if (added >= sizeof(uri))
diff --git a/send.c b/send.c
index a544ac5438875deab9e8d8edfe3b9c2a84e2a3c5..10b9f18aa8be79258736ce1529ab364b8300a8e7 100644 (file)
--- a/send.c
+++ b/send.c
@@ -1559,7 +1559,8 @@ int ci_send_message(int flags, struct Email *msg, char *tempfile,
     OptNewsSend = false;
 #endif
 
-  if (!flags && !msg && Recall != MUTT_NO && mutt_num_postponed(ctx ? ctx->mailbox: NULL, true))
+  if (!flags && !msg && Recall != MUTT_NO &&
+      mutt_num_postponed(ctx ? ctx->mailbox : NULL, true))
   {
     /* If the user is composing a new message, check to see if there
      * are any postponed messages first.