head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.12 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.10 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.8 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.6 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.4 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.2 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.3.0.4 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.2 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.2.0.8 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.6 pkgsrc-2008Q1:1.2.0.4 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.2 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.1.0.4 pkgsrc-2007Q3-base:1.1 pkgsrc-2007Q2:1.1.0.2 pkgsrc-2007Q2-base:1.1; locks; strict; comment @# @; 1.4 date 2008.11.03.12.52.39; author adam; state dead; branches; next 1.3; 1.3 date 2008.08.20.10.03.32; author adam; state Exp; branches; next 1.2; 1.2 date 2007.10.14.08.32.19; author adam; state Exp; branches; next 1.1; 1.1 date 2007.06.15.14.26.23; author darcy; state Exp; branches; next ; desc @@ 1.4 log @Removed unused (PROP_TYPE_STRING) patches @ text @$NetBSD: patch-ag,v 1.3 2008/08/20 10:03:32 adam Exp $ --- src/lib/prop.c.orig 2008-04-02 01:19:48.000000000 +0200 +++ src/lib/prop.c @@@@ -420,7 +420,7 @@@@ prop_get_def(prop_set_t *ps, property_t sizeof buf->data.ip.value * PROP(ps,p).vector_size); break; - case PROP_TYPE_STRING: + case gg_PROP_TYPE_STRING: buf->data.string.def = g_new(gchar*, 1); *buf->data.string.def = g_strdup(*PROP(ps,p).data.string.def); buf->data.string.value = g_new(gchar*, 1); @@@@ -475,7 +475,7 @@@@ prop_free_def(prop_def_t *d) case PROP_TYPE_IP: G_FREE_NULL(d->data.ip.value); break; - case PROP_TYPE_STRING: + case gg_PROP_TYPE_STRING: G_FREE_NULL(*d->data.string.value); G_FREE_NULL(*d->data.string.def); G_FREE_NULL(d->data.string.value); @@@@ -1152,12 +1152,12 @@@@ prop_set_string(prop_set_t *ps, property if (!prop_in_range(ps, prop)) g_error("prop_get_gchar: unknown property %d", prop); - if (PROP(ps,prop).type != PROP_TYPE_STRING) + if (PROP(ps,prop).type != gg_PROP_TYPE_STRING) g_error("Type mismatch getting value for [%s] of type" " %s when %s was expected", PROP(ps,prop).name, prop_type_str[PROP(ps,prop).type].name, - prop_type_str[PROP_TYPE_STRING].name); + prop_type_str[gg_PROP_TYPE_STRING].name); prop_assert(ps, prop, PROP(ps,prop).vector_size == 1); @@@@ -1214,12 +1214,12 @@@@ prop_get_string(prop_set_t *ps, property if (!prop_in_range(ps, prop)) g_error("prop_get_gchar: unknown property %d", prop); - if (PROP(ps,prop).type != PROP_TYPE_STRING) + if (PROP(ps,prop).type != gg_PROP_TYPE_STRING) g_error("Type mismatch getting value for [%s] of type" " %s when %s was expected", PROP(ps,prop).name, prop_type_str[PROP(ps,prop).type].name, - prop_type_str[PROP_TYPE_STRING].name); + prop_type_str[gg_PROP_TYPE_STRING].name); s = *PROP(ps,prop).data.string.value; @@@@ -1329,7 +1329,7 @@@@ prop_to_string(prop_set_t *ps, property_ timestamp_to_string_buf(val, s, sizeof s); } break; - case PROP_TYPE_STRING: + case gg_PROP_TYPE_STRING: { gchar *buf = prop_get_string(ps, prop, NULL, 0); @@@@ -1406,7 +1406,7 @@@@ prop_default_to_string(prop_set_t *ps, p case PROP_TYPE_TIMESTAMP: uint64_to_string_buf(p->data.timestamp.def[0], s, sizeof s); break; - case PROP_TYPE_STRING: + case gg_PROP_TYPE_STRING: g_strlcpy(s, *p->data.string.def ? *p->data.string.def : "", sizeof s); break; case PROP_TYPE_IP: @@@@ -1679,7 +1679,7 @@@@ prop_save_to_file(prop_set_t *ps, const val = g_strjoinv(",", vbuf); quotes = TRUE; break; - case PROP_TYPE_STRING: + case gg_PROP_TYPE_STRING: val = g_strdup(*p->data.string.value); if ( val != *p->data.string.def && @@@@ -1828,7 +1828,7 @@@@ prop_set_from_string(prop_set_t *ps, pro p->vector_size, vecbuf.timestamp); stub->timestamp.set(prop, vecbuf.timestamp, 0, 0); break; - case PROP_TYPE_STRING: + case gg_PROP_TYPE_STRING: stub->string.set(prop, val); break; case PROP_TYPE_IP: @ 1.3 log @Changes 0.96.5: Bug Fixes: - 1870957: Wrong sign could cause out-of-bounds read and potentially a crash. - Firewalled status was not re-verified after a port change if the previously used port was open. - Fixed issue that caused the local peer cache to degenerate. Improvements: - Client-side support for tigertree hashes (TTH/THEX). - Replaced navigation tree by tabs. - Redesigned download user-interface to make it more accessible. - Added some selectable pre-defined search filters. - Bitzi tickets are displayed in full raw indented XML. - Display Bitzi and ShareMonkey URLs as search result details. - Topless mode is available at run-time via command-line switch. - Added default shared filename extensions: .7z, .bittorrent, .oga, .ogv, .spx, .tbz2 - Removed default shared filename extensions: .doc - Updated translations: Japanese, Norwegian Bokmal, French. Under the hood: - Changed default to dual use of IPv4 and IPv6 instead of IPv4-only. - Support the "as" (Alternate Source) key in magnet links. - Eszett is finally normalized to "ss" in search queries. - Avoid display updates for elements not currently visible. - Take full advantage of persistent HTTP connections to fetch multiple files from the same peer through over the same connection if scheduling permits. - Improved TLS support and blocking detection. - Updated list of hostile IP adress ranges, bogons, Geo-IP data, spam patterns and spam samples. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Changes 0.96.4: Bug Fixes: - The download overlap checking was incorrectly detecting mismatches. - A bug in the network queue caused frequent crashes. - A bug in the event timing caused failures after 25 days uptime. - A stalling issue with TLS connections. - The search retry timeouts weren't accepted. - The order of items in the search history was wrong. - The quick-connect limit wasn't respected causing too frequent connection attempts during startup. - Removed incorrect use of SF_NODISKIO flag for sendfile() on FreeBSD. - Fixed crash that could be triggered by changing the listening port temporarily to zero. - iconv() was not used correctly which could cause wrong conversions for longer strings. - Generated filenames weren't properly restricted in length which could cause crashes. - There was a compile issue on NetBSD caused by namespace pollution. - Added workaround for the issue that on Solaris only the file descriptors 0..255 can be used for stdio. Improvements: - Finished downloads are now seeded for the whole session or until they are manually purged, if partial file-sharing is enabled. - Server-side support for Tigertree hashes and THEX thanks to patches provided by Martijn van Oosterhout. - Improved spam filters. @ text @d3 1 a3 1 --- src/lib/prop.c.orig 2007-07-07 06:21:38.000000000 +0200 d5 1 a5 1 @@@@ -466,7 +466,7 @@@@ prop_get_def(prop_set_t *ps, property_t d14 1 a14 1 @@@@ -521,7 +521,7 @@@@ prop_free_def(prop_def_t *d) d23 1 a23 1 @@@@ -1198,12 +1198,12 @@@@ prop_set_string(prop_set_t *ps, property d38 1 a38 1 @@@@ -1260,12 +1260,12 @@@@ prop_get_string(prop_set_t *ps, property d53 1 a53 1 @@@@ -1375,7 +1375,7 @@@@ prop_to_string(prop_set_t *ps, property_ d62 1 a62 1 @@@@ -1452,7 +1452,7 @@@@ prop_default_to_string(prop_set_t *ps, p d71 1 a71 1 @@@@ -1725,7 +1725,7 @@@@ prop_save_to_file(prop_set_t *ps, const d79 2 a80 2 (val == NULL && *p->data.string.def != NULL) || @@@@ -1872,7 +1872,7 @@@@ prop_set_from_string(prop_set_t *ps, pro @ 1.1 log @Prepend two tokens with "gg_" to avoid conflicts with our system. A little klugey but I doubt that we will be changing our proplib.h anytime soon. @ text @d3 1 a3 1 --- src/lib/prop.c.orig 2007-06-14 12:07:07.000000000 -0400 d71 1 a71 1 @@@@ -1727,7 +1727,7 @@@@ prop_save_to_file(prop_set_t *ps, const d80 1 a80 1 @@@@ -1874,7 +1874,7 @@@@ prop_set_from_string(prop_set_t *ps, pro @