From bb89b1e4dbfc63857adb829c4fe31c63e9ca1b14 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 15 May 2023 18:53:19 +0200 Subject: sfeed_atom: gmtime_r make it consistent with sfeed_mbox When gmtime_r is called to get the current time show the same error message as sfeed_mbox does. --- sfeed_atom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfeed_atom.c b/sfeed_atom.c index ace7d5a..99facad 100644 --- a/sfeed_atom.c +++ b/sfeed_atom.c @@ -130,7 +130,7 @@ main(int argc, char *argv[]) if ((now = time(NULL)) == (time_t)-1) errx(1, "time"); if (!(tm = gmtime_r(&now, &tmnow))) - err(1, "gmtime_r"); + err(1, "gmtime_r: can't get current time"); fputs("\n" "\n" -- cgit v1.2.3