summaryrefslogtreecommitdiff
path: root/sfeed_mbox.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2020-03-15 14:59:48 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-03-15 14:59:48 +0100
commit39b6baa030996fbbc429a99d0274ca7a9917fb3a (patch)
tree8d097f9f135a92483f131fbd1a473bd8fae703b0 /sfeed_mbox.c
parentf7a4160d3fad90f7d78c6a7a79f3bc74e09f29bb (diff)
sfeed_mbox: POSIX defines gmtime_r sets errno, so use err(), not errx()
Diffstat (limited to 'sfeed_mbox.c')
-rw-r--r--sfeed_mbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed_mbox.c b/sfeed_mbox.c
index eabe5fa..a10bd45 100644
--- a/sfeed_mbox.c
+++ b/sfeed_mbox.c
@@ -90,7 +90,7 @@ main(int argc, char *argv[])
if ((t = time(NULL)) == -1)
err(1, "time");
if (!gmtime_r(&t, &tm))
- errx(1, "gmtime_r: can't get current time");
+ err(1, "gmtime_r: can't get current time");
if (!strftime(mtimebuf, sizeof(mtimebuf), "%a %b %d %H:%M:%S %Y", &tm))
errx(1, "strftime: can't format current time");