sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 365d7205d357147c04375c65651df0c2c4d96f1b
parent 23736959669760b02644d3042ff67950d1d61a9e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 24 Feb 2022 00:42:02 +0100

sfeed_mbox: use putc, it may be implemented as a macro

No functional difference intended.

Diffstat:
Msfeed_mbox.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 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; } } }