From 2b4e3aa66dc66c6c5c6f74c60c597e734b539ff6 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 26 Jan 2017 20:27:26 +0100 Subject: clean up whitespace --- msed.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'msed.c') diff --git a/msed.c b/msed.c index 20a720b..5c82745 100644 --- a/msed.c +++ b/msed.c @@ -80,17 +80,17 @@ subst(char *str, char *srch, char *repl, char *flags) void printhdr(char *hdr, int rest) { - int uc = 1; + int uc = 1; - while (*hdr && *hdr != ':') { - putc(uc ? toupper(*hdr) : *hdr, stdout); - uc = (*hdr == '-'); - hdr++; - } + while (*hdr && *hdr != ':') { + putc(uc ? toupper(*hdr) : *hdr, stdout); + uc = (*hdr == '-'); + hdr++; + } - if (rest) { - printf("%s\n", hdr); - } + if (rest) { + printf("%s\n", hdr); + } } void @@ -101,7 +101,7 @@ sed(char *file) return; char *h = 0; - while ((h = blaze822_next_header(msg, h))) { + while ((h = blaze822_next_header(msg, h))) { regex_t headerrx; char headersel[1024]; @@ -215,7 +215,7 @@ sed(char *file) printf(": %s\n", v); free(v); } - } + } // loop, do all a// @@ -283,7 +283,7 @@ sed(char *file) } while (*e && *e != ';' && *e != '\n') e++; - } + } printf("\n"); fwrite(blaze822_body(msg), 1, blaze822_bodylen(msg), stdout); -- cgit 1.4.1