summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-02-24 00:42:02 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-02-24 00:42:02 +0100
commit365d7205d357147c04375c65651df0c2c4d96f1b (patch)
treef6c953faf11a98ef51775dbc9c2bf5c441a47923
parent23736959669760b02644d3042ff67950d1d61a9e (diff)
sfeed_mbox: use putc, it may be implemented as a macro
No functional difference intended.
-rw-r--r--sfeed_mbox.c12
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;
}
}
}