summaryrefslogtreecommitdiffstats
path: root/copy.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2019-01-04 18:45:01 -0800
committerKevin McCarthy <kevin@8t8.us>2019-01-04 19:50:16 -0800
commitefa3afb539b9672ebd6e64cb0c16b98c5f6b8a60 (patch)
tree8fd166307801d97c801d6a2e75f255d6b0ba0f48 /copy.c
parent248c2ee8ed7c0ff333ae076041107210c5acd641 (diff)
Clean up formatting.
Add spaces after if, else, while, for, switch. Unify the brace placement style. The vast majority of the code uses Allman style so convert the relatively few K&R braces over.
Diffstat (limited to 'copy.c')
-rw-r--r--copy.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/copy.c b/copy.c
index 774fe215..9e6feffe 100644
--- a/copy.c
+++ b/copy.c
@@ -247,10 +247,13 @@ mutt_copy_hdr (FILE *in, FILE *out, LOFF_T off_start, LOFF_T off_end, int flags,
if (!ignore)
{
dprint (2, (debugfile, "Reorder: x = %d; hdr_count = %d\n", x, hdr_count));
- if (!this_one) {
+ if (!this_one)
+ {
this_one = safe_strdup (buf);
this_one_len = mutt_strlen (this_one);
- } else {
+ }
+ else
+ {
int blen = mutt_strlen (buf);
safe_realloc (&this_one, this_one_len + blen + sizeof (char));
@@ -703,10 +706,10 @@ _mutt_copy_message (FILE *fpout, FILE *fpin, HEADER *hdr, BODY *body,
fputs(prefix, fpout);
- while((c = fgetc(fpin)) != EOF && bytes--)
+ while ((c = fgetc(fpin)) != EOF && bytes--)
{
fputc(c, fpout);
- if(c == '\n')
+ if (c == '\n')
{
fputs(prefix, fpout);
}