diff options
author | Kevin McCarthy <kevin@8t8.us> | 2019-01-03 19:58:18 -0800 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2019-01-04 13:59:27 -0800 |
commit | 248c2ee8ed7c0ff333ae076041107210c5acd641 (patch) | |
tree | f51f10f1f486e08c76e187c095e536620bebbbd0 /pop.c | |
parent | 085a6f74b3b7cebabb75f4c99ea9d59649c7b03a (diff) |
Clean up code indentation.
These are mostly automated changes corresponding to the emacs
settings:
(c-set-style "linux")
(setq c-basic-offset 2)
(c-set-offset 'case-label '+)
Most of the code follows the convention:
(add-to-list 'c-cleanup-list 'space-before-funcall)
but this is not enforced by this indentation cleanup.
Also, I personally dislike tabs, so I have:
(setq-default indent-tabs-mode nil)
in my own configuration. However I have no desire to change every line
just for that effect. So this cleanup does nothing about the mix issue.
Some of the secondary files (e.g. regex.c) have been skipped.
I've also skipped crypt-gpgme.c, because I need to think about that
file. Werner Koch and the GnuPG team contributed most it, and it
follows the Gnu indentation settings. It should probably be made
uniform with Mutt, but I don't want to discourage future GnuPG
contribution to the file.
I manually reverted a few unsightly cleanups, and added a few tweeks
when I saw things that could be improved.
Diffstat (limited to 'pop.c')
-rw-r--r-- | pop.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -118,7 +118,7 @@ static int pop_read_header (POP_DATA *pop_data, HEADER *h) dprint (1, (debugfile, "pop_read_header: unset TOP capability\n")); snprintf (pop_data->err_msg, sizeof (pop_data->err_msg), "%s", - _("Command TOP is not supported by server.")); + _("Command TOP is not supported by server.")); } } } @@ -166,9 +166,9 @@ static int fetch_uidl (char *line, void *data) errno = 0; index = strtol(line, &endp, 10); if (errno) - return -1; + return -1; while (*endp == ' ') - endp++; + endp++; memmove(line, endp, strlen(endp) + 1); /* uid must be at least be 1 byte */ @@ -296,7 +296,7 @@ static int pop_fetch_headers (CONTEXT *ctx) dprint (1, (debugfile, "pop_fetch_headers: unset UIDL capability\n")); snprintf (pop_data->err_msg, sizeof (pop_data->err_msg), "%s", - _("Command UIDL is not supported by server.")); + _("Command UIDL is not supported by server.")); } } @@ -351,13 +351,13 @@ static int pop_fetch_headers (CONTEXT *ctx) } else #endif - if ((ret = pop_read_header (pop_data, ctx->hdrs[i])) < 0) - break; + if ((ret = pop_read_header (pop_data, ctx->hdrs[i])) < 0) + break; #if USE_HCACHE - else - { - mutt_hcache_store (hc, ctx->hdrs[i]->data, ctx->hdrs[i], 0, strlen, MUTT_GENERATE_UIDVALIDITY); - } + else + { + mutt_hcache_store (hc, ctx->hdrs[i]->data, ctx->hdrs[i], 0, strlen, MUTT_GENERATE_UIDVALIDITY); + } mutt_hcache_free (&data); #endif @@ -398,7 +398,7 @@ static int pop_fetch_headers (CONTEXT *ctx) } #if USE_HCACHE - mutt_hcache_close (hc); + mutt_hcache_close (hc); #endif if (ret < 0) |