commit 39b6baa030996fbbc429a99d0274ca7a9917fb3a
parent f7a4160d3fad90f7d78c6a7a79f3bc74e09f29bb
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 15 Mar 2020 14:59:48 +0100
sfeed_mbox: POSIX defines gmtime_r sets errno, so use err(), not errx()
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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");