head 1.5; access; symbols pkgsrc-2014Q2:1.4.0.56 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.54 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.52 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.50 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.48 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.46 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.44 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.42 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.40 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.38 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.36 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.34 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.32 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.30 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.28 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.26 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.24 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.22 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.20 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.18 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.16 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.4.0.14 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.12 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.10 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.8 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.6 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.4 pkgsrc-2008Q1:1.4.0.2 pkgsrc-2008Q1-base:1.4; locks; strict; comment @# @; 1.5 date 2014.08.05.12.34.49; author wiz; state dead; branches; next 1.4; commitid EkR5RQIqbe0yEaLx; 1.4 date 2008.02.03.11.14.27; author drochner; state Exp; branches; next 1.3; 1.3 date 2008.01.16.19.53.24; author smb; state Exp; branches; next 1.2; 1.2 date 2008.01.09.21.09.26; author smb; state Exp; branches; next 1.1; 1.1 date 2008.01.09.20.12.19; author smb; state Exp; branches; next ; desc @@ 1.5 log @Update to 1.8.15nb10 using liferea-current. @ text @$NetBSD: patch-ae,v 1.4 2008/02/03 11:14:27 drochner Exp $ --- src/common.c.orig 2008-01-13 02:07:10.000000000 +0100 +++ src/common.c @@@@ -273,9 +273,9 @@@@ gchar *dayofweek[] = { "Sun", "Mon", "Tu gchar *months[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}; gchar *createRFC822Date(const time_t *time) { - struct tm *tm; + struct tm *tm, tmbuf; - tm = gmtime(time); /* No need to free because it is statically allocated */ + tm = gmtime_r(time, &tmbuf); /* No need to free because it is statically allocated */ return g_strdup_printf("%s, %2d %s %4d %02d:%02d:%02d GMT", dayofweek[tm->tm_wday], tm->tm_mday, months[tm->tm_mon], 1900 + tm->tm_year, tm->tm_hour, tm->tm_min, tm->tm_sec); } @@@@ -325,7 +325,7 @@@@ static time_t common_parse_rfc822_tz(cha /* converts a RFC822 time string to a time_t value */ time_t parseRFC822Date(gchar *date) { - struct tm tm; + struct tm tm, t2buf; time_t t, t2; char *oldlocale; char *pos; @@@@ -373,7 +373,7 @@@@ time_t parseRFC822Date(gchar *date) { correction. (Usually, there is no daylight savings time since the input is GMT.) */ t = t - common_parse_rfc822_tz(pos); - t2 = mktime(gmtime(&t)); + t2 = mktime(gmtime_r(&t, &t2buf)); t = t - (t2 - t); return t; } else { @ 1.4 log @update to 1.4.12 changes: -fix a crash when selecting news bins -add compatibility with non-standard "xmlURL" OPML attributes used by LiveJournal -bugfixes @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Fix a reentrancy bug, and a portability bug involving a Linux documentation error and the behavior of NetBSD on 64-bit machines. All three bugs (including the Linux documentation problem) have been reported upstream and will be fixed there. @ text @d1 1 a1 1 $NetBSD: patch-ae,v 1.2 2008/01/09 21:09:26 smb Exp $ d3 3 a5 30 --- src/common.c.orig 2007-10-21 14:30:46.000000000 -0400 +++ src/common.c 2008-01-09 15:58:30.000000000 -0500 @@@@ -37,7 +37,7 @@@@ # include #endif -#define _XOPEN_SOURCE /* glibc2 needs this (man strptime) */ +#define _XOPEN_SOURCE 600 /* Set according to Opengroup standards */ #include @@@@ -196,7 +196,7 @@@@ /* converts a ISO 8601 time string to a time_t value */ time_t parseISO8601Date(gchar *date) { - struct tm tm; + struct tm tm, t2buf; time_t t, t2, offset = 0; gboolean success = FALSE; gchar *pos; @@@@ -252,7 +252,7 @@@@ if((time_t)(-1) != (t = mktime(&tm))) { /* Correct for the local timezone*/ t = t - offset; - t2 = mktime(gmtime(&t)); + t2 = mktime(gmtime_r(&t, &t2buf)); t = t - (t2 - t); return t; @@@@ -270,9 +270,9 @@@@ d17 1 a17 1 @@@@ -322,7 +322,7 @@@@ d26 1 a26 1 @@@@ -370,7 +370,7 @@@@ @ 1.2 log @Change #define of _XOPEN_SOURCE to make strptime() happy @ text @d1 1 a1 1 $NetBSD$ d10 1 a10 1 +#define _XOPEN_SOURCE 4 /* glibc2 needs this (man strptime); NetBSD wants it to be 4 or higher */ @ 1.1 log @Replace calls to gmtime() with calls to gmtime_r() in a threaded routine. @ text @d3 11 a13 2 --- src/common.c.orig 2008-01-09 11:46:50.000000000 -0500 +++ src/common.c 2008-01-09 11:46:53.000000000 -0500 @