diff options
author | Beech Rintoul <beech@FreeBSD.org> | 2013-03-12 18:29:33 +0000 |
---|---|---|
committer | Beech Rintoul <beech@FreeBSD.org> | 2013-03-12 18:29:33 +0000 |
commit | ec78422e8b228db43a222dacfce8bfd29612645e (patch) | |
tree | 3a733ae51b6aea65775074b8123b9b850792bb95 /net-mgmt/collectd5/files/patch-src__dns.c | |
parent | - Update to 1.055 [1] (diff) |
- Update to 5.2.1
- Fix build with clang
PR: ports/176691
Submitted by: William Grzybowski <william88@gmail.com>
Approved by: Krzysztof Stryjek <ports@bsdserwis.com> (maintainer)
Notes
Notes:
svn path=/head/; revision=313994
Diffstat (limited to 'net-mgmt/collectd5/files/patch-src__dns.c')
-rw-r--r-- | net-mgmt/collectd5/files/patch-src__dns.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/net-mgmt/collectd5/files/patch-src__dns.c b/net-mgmt/collectd5/files/patch-src__dns.c index fb045049b25a..84e0d2e65398 100644 --- a/net-mgmt/collectd5/files/patch-src__dns.c +++ b/net-mgmt/collectd5/files/patch-src__dns.c @@ -1,6 +1,8 @@ ---- src/dns.c.orig 2008-09-05 15:26:02.000000000 +0000 -+++ src/dns.c 2008-09-05 15:25:55.000000000 +0000 -@@ -210,6 +210,15 @@ +diff --git src/dns.c src/dns.c +index fe3b672..0c43985 100644 +--- src/dns.c ++++ src/dns.c +@@ -223,6 +223,15 @@ static void *dns_child_loop (__attribute__((unused)) void *dummy) pthread_sigmask (SIG_SETMASK, &sigmask, NULL); } @@ -8,11 +10,11 @@ +#ifdef __sparc64__ + if (pcap_device == NULL) + { -+ ERROR ("dns plugin: Interface required"); -+ return (NULL); ++ ERROR ("dns plugin: Interface required"); ++ return (NULL); + } +#endif + /* Passing `pcap_device == NULL' is okay and the same as passign "any" */ - DEBUG ("Creating PCAP object.."); - pcap_obj = pcap_open_live (pcap_device, + DEBUG ("dns plugin: Creating PCAP object.."); + pcap_obj = pcap_open_live ((pcap_device != NULL) ? pcap_device : "any", |