From: Sebastian Harl Date: Tue, 2 Jun 2009 20:05:31 +0000 (+0200) Subject: patches: Added libcollectdclient_static_sstrerror.dpatch. X-Git-Tag: collectd-4.6.3-1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=869865935bb829344d2a320b948d4686a5419db2;p=pkg-collectd.git patches: Added libcollectdclient_static_sstrerror.dpatch. This patch makes a private function in libcollectdclient static. --- diff --git a/debian/changelog b/debian/changelog index 2991c1a..bcbe7ee 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,10 +6,12 @@ collectd (4.6.3-1) unstable; urgency=low - Removed include_empty_files.dpatch - included upstream. - Removed ntpd_type_pun_fix.dpatch - included upstream. - Removed rrdtool_uninitialized_fix.dpatch - included upstream. + - Added libcollectdclient_static_sstrerror.dpatch to make a private + function in libcollectdclient static. * debian/rules: - Install collectd-network.py to /usr/share/doc/collectd/examples/. - -- Sebastian Harl Tue, 02 Jun 2009 21:14:21 +0200 + -- Sebastian Harl Tue, 02 Jun 2009 22:03:10 +0200 collectd (4.6.2-3) unstable; urgency=low diff --git a/debian/patches/00list b/debian/patches/00list index 332b35c..eb3c26b 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -1,3 +1,4 @@ rrd_filter_path.dpatch collection_conf_path.dpatch +libcollectdclient_static_sstrerror.dpatch diff --git a/debian/patches/libcollectdclient_static_sstrerror.dpatch b/debian/patches/libcollectdclient_static_sstrerror.dpatch new file mode 100755 index 0000000..e638089 --- /dev/null +++ b/debian/patches/libcollectdclient_static_sstrerror.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## libcollectdclient_static_sstrerror.dpatch by Sebastian Harl +## +## DP: libcollectdclient/client.c: Made sstrerror() static. +## DP: +## DP: This is a private helper function only. + +@DPATCH@ + +diff a/src/libcollectdclient/client.c b/src/libcollectdclient/client.c +--- a/src/libcollectdclient/client.c ++++ b/src/libcollectdclient/client.c +@@ -121,7 +121,7 @@ typedef struct lcc_response_s lcc_response_t; + /* Even though Posix requires "strerror_r" to return an "int", + * some systems (e.g. the GNU libc) return a "char *" _and_ + * ignore the second argument ... -tokkee */ +-char *sstrerror (int errnum, char *buf, size_t buflen) ++static char *sstrerror (int errnum, char *buf, size_t buflen) + { + buf[0] = 0; +