summaryrefslogtreecommitdiff
path: root/sfeed_frames.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-02-29 14:11:06 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-02-29 14:11:06 +0100
commit5bbec445477ebb16e88596a56db2034da90de325 (patch)
treed50940eea1a512f06e8d030c54aabd75e36fc7e5 /sfeed_frames.c
parenteddf9662587aa0ee356a9090bc7b01e65f4fc0b2 (diff)
sfeed_frames: no need to read from index files, mode "w+b" to "wb"
Diffstat (limited to 'sfeed_frames.c')
-rw-r--r--sfeed_frames.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfeed_frames.c b/sfeed_frames.c
index 1367876..6edf3c9 100644
--- 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>"