diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-03-15 14:59:48 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-03-15 14:59:48 +0100 |
commit | 39b6baa030996fbbc429a99d0274ca7a9917fb3a (patch) | |
tree | 8d097f9f135a92483f131fbd1a473bd8fae703b0 | |
parent | f7a4160d3fad90f7d78c6a7a79f3bc74e09f29bb (diff) |
sfeed_mbox: POSIX defines gmtime_r sets errno, so use err(), not errx()
-rw-r--r-- | sfeed_mbox.c | 2 |
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"); |