diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-02-24 00:42:02 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-02-24 00:42:02 +0100 |
commit | 365d7205d357147c04375c65651df0c2c4d96f1b (patch) | |
tree | f6c953faf11a98ef51775dbc9c2bf5c441a47923 | |
parent | 23736959669760b02644d3042ff67950d1d61a9e (diff) |
sfeed_mbox: use putc, it may be implemented as a macro
No functional difference intended.
-rw-r--r-- | sfeed_mbox.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sfeed_mbox.c b/sfeed_mbox.c index cd6e65d..6419d16 100644 --- a/sfeed_mbox.c +++ b/sfeed_mbox.c @@ -29,10 +29,10 @@ printcontent(const char *s, FILE *fp) { escapefrom: for (; *s == '>'; s++) - fputc('>', fp); + putc('>', fp); /* escape "From ", mboxrd-style. */ if (!strncmp(s, "From ", 5)) - fputc('>', fp); + putc('>', fp); for (; *s; s++) { switch (*s) { @@ -40,15 +40,15 @@ escapefrom: s++; switch (*s) { case 'n': - fputc('\n', fp); + putc('\n', fp); s++; goto escapefrom; - case '\\': fputc('\\', fp); break; - case 't': fputc('\t', fp); break; + case '\\': putc('\\', fp); break; + case 't': putc('\t', fp); break; } break; default: - fputc(*s, fp); break; + putc(*s, fp); break; } } } |