From 39b6baa030996fbbc429a99d0274ca7a9917fb3a Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 15 Mar 2020 14:59:48 +0100 Subject: sfeed_mbox: POSIX defines gmtime_r sets errno, so use err(), not errx() --- sfeed_mbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3