sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit bb89b1e4dbfc63857adb829c4fe31c63e9ca1b14
parent 5027669efb6a969afa2c8adcf7c2322dcf75de1f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 15 May 2023 18:53:19 +0200

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.

Diffstat:
Msfeed_atom.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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"