From 600dcf8f8dba1475ba7d6b07504a91975ca2f60e Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Sat, 1 Jun 2019 21:19:14 +0100 Subject: [PATCH] clang-format --- address/address.c | 1 - maildir/shared.c | 4 +--- mutt/buffer.c | 2 +- mutt/string.c | 2 +- muttlib.c | 4 ++-- send.c | 3 +-- 6 files changed, 6 insertions(+), 10 deletions(-) diff --git a/address/address.c b/address/address.c index ce282c407..43ab9216c 100644 --- a/address/address.c +++ b/address/address.c @@ -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 diff --git a/maildir/shared.c b/maildir/shared.c index 6feee289b..9a471c3d9 100644 --- a/maildir/shared.c +++ b/maildir/shared.c @@ -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) { diff --git a/mutt/buffer.c b/mutt/buffer.c index 0ef3637d3..9b19b3f22 100644 --- a/mutt/buffer.c +++ b/mutt/buffer.c @@ -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); diff --git a/mutt/string.c b/mutt/string.c index 92a0aa7ec..de8f67787 100644 --- a/mutt/string.c +++ b/mutt/string.c @@ -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) diff --git a/muttlib.c b/muttlib.c index b1f575876..482eaa079 100644 --- 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 fa74ce7e2..d70aabdff 100644 --- 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 -- 2.40.0