pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/collectd Fix ctype.h use



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8271b7377856
branches:  trunk
changeset: 355105:8271b7377856
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Nov 20 22:11:28 2016 +0000

description:
Fix ctype.h use

diffstat:

 sysutils/collectd/distinfo                                    |   3 +-
 sysutils/collectd/patches/patch-src_utils__format__kairosdb.c |  18 +++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 83872ccc8b52 -r 8271b7377856 sysutils/collectd/distinfo
--- a/sysutils/collectd/distinfo        Sun Nov 20 21:58:39 2016 +0000
+++ b/sysutils/collectd/distinfo        Sun Nov 20 22:11:28 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.28 2016/10/13 15:17:28 fhajny Exp $
+$NetBSD: distinfo,v 1.29 2016/11/20 22:11:28 joerg Exp $
 
 SHA1 (collectd-5.6.1.tar.bz2) = 20b773928743b346e0962fc1dc37167390a16d80
 RMD160 (collectd-5.6.1.tar.bz2) = 5247f6b4a0936ac9715189e16afe6f65bee94788
@@ -21,3 +21,4 @@
 SHA1 (patch-src_swap.c) = 304a25324099495fb875127221ed5fc95173a164
 SHA1 (patch-src_tcpconns.c) = 712af1b821d62217283df884dd283d5b1218ab7c
 SHA1 (patch-src_utils__dns.c) = c3782dc9127f42da30e3142b853aa2cb2259af94
+SHA1 (patch-src_utils__format__kairosdb.c) = 4fd05adcf0bf47ed94ce60aad5d7332279b06224
diff -r 83872ccc8b52 -r 8271b7377856 sysutils/collectd/patches/patch-src_utils__format__kairosdb.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/collectd/patches/patch-src_utils__format__kairosdb.c     Sun Nov 20 22:11:28 2016 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_utils__format__kairosdb.c,v 1.1 2016/11/20 22:11:28 joerg Exp $
+
+--- src/utils_format_kairosdb.c.orig   2016-11-19 12:00:24.000000000 +0000
++++ src/utils_format_kairosdb.c
+@@ -83,11 +83,11 @@ static int kairosdb_escape_string (char 
+   BUFFER_ADD ('"');
+   for (size_t src_pos = 0; string[src_pos] != 0; src_pos++)
+   {
+-    if (isalnum(string[src_pos]) ||
++    if (isalnum((unsigned char)string[src_pos]) ||
+       0x2d == string[src_pos] ||
+       0x2e == string[src_pos] ||
+       0x5f == string[src_pos])
+-        BUFFER_ADD (tolower(string[src_pos]));
++        BUFFER_ADD (tolower((unsigned char)string[src_pos]));
+   } /* for */
+   BUFFER_ADD ('"');
+   buffer[dst_pos] = 0;



Home | Main Index | Thread Index | Old Index