diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-01-26 20:27:26 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-01-26 20:27:26 +0100 |
commit | 2b4e3aa66dc66c6c5c6f74c60c597e734b539ff6 (patch) | |
tree | 240cda05651bf8822b3eb47dee3a6781b064277a /msed.c | |
parent | c561aca4c9affa597d6a36d39d8a65c58ca78c87 (diff) | |
download | mblaze-2b4e3aa66dc66c6c5c6f74c60c597e734b539ff6.tar.gz mblaze-2b4e3aa66dc66c6c5c6f74c60c597e734b539ff6.tar.xz mblaze-2b4e3aa66dc66c6c5c6f74c60c597e734b539ff6.zip |
clean up whitespace
Diffstat (limited to 'msed.c')
-rw-r--r-- | msed.c | 24 |
1 files changed, 12 insertions, 12 deletions
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); |