sfeed

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

commit 5bbec445477ebb16e88596a56db2034da90de325
parent eddf9662587aa0ee356a9090bc7b01e65f4fc0b2
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 29 Feb 2016 14:11:06 +0100

sfeed_frames: no need to read from index files, mode "w+b" to "wb"

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

diff --git a/sfeed_frames.c b/sfeed_frames.c @@ -244,11 +244,11 @@ main(int argc, char *argv[]) comparetime -= 86400; /* write main index page */ - if (!(fpindex = fopen("index.html", "w+b"))) + if (!(fpindex = fopen("index.html", "wb"))) err(1, "fopen: index.html"); - if (!(fpmenu = fopen("menu.html", "w+b"))) + if (!(fpmenu = fopen("menu.html", "wb"))) err(1, "fopen: menu.html"); - if (!(fpitems = fopen("items.html", "w+b"))) + if (!(fpitems = fopen("items.html", "wb"))) err(1, "fopen: items.html"); fputs("<html><head><link rel=\"stylesheet\" type=\"text/css\" href=\"../style.css\" />" "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" /></head>"