Fix for 64bit time_t.

This commit is contained in:
ajacoutot 2022-11-07 17:50:10 +00:00
parent 648bd04e86
commit 15340b5530
2 changed files with 15 additions and 0 deletions

View File

@ -4,6 +4,7 @@ CATEGORIES= www
GH_ACCOUNT= msharov
GH_PROJECT= snownews
GH_TAGNAME= v1.8
REVISION= 0
# GPLv3 only
PERMIT_PACKAGE= Yes

View File

@ -0,0 +1,14 @@
64bit time_t
Index: feedio.c
--- feedio.c.orig
+++ feedio.c
@@ -300,7 +300,7 @@ static void WriteFeedCache (const struct feed* feed)
"\txmlns:snow=\"http://snownews.kcore.de/ns/1.0/\">\n\n", cache);
if (feed->lastmodified)
- fprintf (cache, "<snow:lastmodified>%ld</snow:lastmodified>\n", feed->lastmodified);
+ fprintf (cache, "<snow:lastmodified>%lld</snow:lastmodified>\n", feed->lastmodified);
char* encoded = (char*) xmlEncodeEntitiesReentrant (NULL, (xmlChar*) feed->feedurl);
fprintf (cache, "<channel rdf:about=\"%s\">\n<title>", encoded);