summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2023-05-15 18:53:19 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2023-05-15 18:53:19 +0200
commitbb89b1e4dbfc63857adb829c4fe31c63e9ca1b14 (patch)
treecc3ace0db1d7386f6987486e9557bb46606edc92
parent5027669efb6a969afa2c8adcf7c2322dcf75de1f (diff)
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.
-rw-r--r--sfeed_atom.c2
1 files changed, 1 insertions, 1 deletions
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("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<feed xmlns=\"http://www.w3.org/2005/Atom\">\n"