tvote.c: don't print to stderr on 404 - vote - simple cgi voting system for web… | |
git clone git://src.adamsgaard.dk/vote | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 9afaec1473d2044388e45ede5f1a4ed38d198939 | |
parent 3934b097745f258d593dc8eaf39073e60e1872fc | |
Author: Anders Damsgaard <[email protected]> | |
Date: Sun, 27 Sep 2020 09:14:36 +0200 | |
vote.c: don't print to stderr on 404 | |
Diffstat: | |
M vote.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/vote.c b/vote.c | |
t@@ -65,7 +65,7 @@ show_poll(const char *poll_name) | |
if (!(fd = fopen(fname, "r"))) { | |
http_status(404); | |
- err(1, "poll_open fopen %s", poll); | |
+ exit(1); | |
} else { | |
fclose(fd); | |
} |