]> granicus.if.org Git - neomutt/commitdiff
clang-format
authorRichard Russon <rich@flatcap.org>
Sat, 1 Jun 2019 20:19:14 +0000 (21:19 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 1 Jun 2019 23:04:58 +0000 (00:04 +0100)
address/address.c
maildir/shared.c
mutt/buffer.c
mutt/string.c
muttlib.c
send.c

index ce282c407d2f6315644d7bd803a64c142de18a03..43ab9216cab56b42addd969d047bad7fcae2eaaa 100644 (file)
@@ -403,7 +403,6 @@ struct Address *mutt_addr_create(const char *personal, const char *mailbox)
   return a;
 }
 
-
 /**
  * mutt_addrlist_remove - Remove an Address from a list
  * @param[in, out] al AddressList
index 6feee289b6bae59cbe2e54fb39218d3515a0b93a..9a471c3d9d05ef25f7bc4d369b545fdc9ba063ec 100644 (file)
@@ -941,9 +941,7 @@ int mh_commit_msg(struct Mailbox *m, struct Message *msg, struct Email *e, bool
   closedir(dirp);
 
   /* Now try to rename the file to the proper name.
-   *
-   * Note: We may have to try multiple times, until we find a free slot.
-   */
+   * Note: We may have to try multiple times, until we find a free slot.  */
 
   while (true)
   {
index 0ef3637d3323328ce9578d842af8c8b1997ec23c..9b19b3f22adb3cb5c15dab105c6a81bf21c64ce6 100644 (file)
@@ -348,7 +348,7 @@ void mutt_buffer_increase_size(struct Buffer *buf, size_t new_size)
   if (new_size <= buf->dsize)
     return;
 
-  size_t offset = (buf->dptr && buf->data) ?  buf->dptr - buf->data : 0;
+  size_t offset = (buf->dptr && buf->data) ? buf->dptr - buf->data : 0;
 
   buf->dsize = new_size;
   mutt_mem_realloc(&buf->data, buf->dsize);
index 92a0aa7ec930762403be6e32e20da218154e542f..de8f67787a310409720fc7d15cff675ed3b5050f 100644 (file)
@@ -1242,7 +1242,7 @@ int mutt_str_asprintf(char **strp, const char *fmt, ...)
   if (n < 0)
   {
     mutt_error(_("Out of memory")); /* LCOV_EXCL_LINE */
-    mutt_exit(1); /* LCOV_EXCL_LINE */
+    mutt_exit(1);                   /* LCOV_EXCL_LINE */
   }
 
   if (n == 0)
index b1f5758763e1b8024eb6b8b48ea68a3654a06310..482eaa079cc1ef5e5eaf5963f60af11e383ac928 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -690,9 +690,9 @@ void mutt_pretty_mailbox(char *buf, size_t buflen)
 void mutt_buffer_pretty_mailbox(struct Buffer *buf)
 {
   if (!buf || !buf->data)
-  /* This reduces the size of the Buffer, so we can pass it through.
+    /* This reduces the size of the Buffer, so we can pass it through.
    * We adjust the size just to make sure buf->data is not NULL though */
-  mutt_buffer_increase_size(buf, PATH_MAX);
+    mutt_buffer_increase_size(buf, PATH_MAX);
   mutt_pretty_mailbox(buf->data, buf->dsize);
   mutt_buffer_fix_dptr(buf);
 }
diff --git a/send.c b/send.c
index fa74ce7e2d200d6dd77c4e8ce4b57d9d6e038084..d70aabdff6b159c1c52b78716b12d46a8e83ebaf 100644 (file)
--- a/send.c
+++ b/send.c
@@ -1310,8 +1310,7 @@ struct Address *mutt_default_from(void)
   else if (C_UseDomain)
   {
     struct Address *addr = mutt_addr_new();
-    mutt_str_asprintf(&addr->mailbox, "%s@%s", NONULL(Username),
-        NONULL(mutt_fqdn(true)));
+    mutt_str_asprintf(&addr->mailbox, "%s@%s", NONULL(Username), NONULL(mutt_fqdn(true)));
     return addr;
   }
   else