summaryrefslogtreecommitdiff
path: root/net/wackamole/files/patch-wackamole.c
diff options
context:
space:
mode:
authorFrederic Culot <culot@FreeBSD.org>2011-05-12 07:38:34 +0000
committerFrederic Culot <culot@FreeBSD.org>2011-05-12 07:38:34 +0000
commit6d02f1e2398ca3f67bde0c32e7430d814cc336c1 (patch)
treea0f9892095e47a9830c0adec5bbb578ae05efc22 /net/wackamole/files/patch-wackamole.c
parent- Update to 2.5.4 (diff)
- Fix compilation errors with libpcap installed from ports and warnings
with clang PR: ports/156968 Submitted by: Marcin Cieslak <saper@saper.info> (maintainer)
Notes
Notes: svn path=/head/; revision=273993
Diffstat (limited to 'net/wackamole/files/patch-wackamole.c')
-rw-r--r--net/wackamole/files/patch-wackamole.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/wackamole/files/patch-wackamole.c b/net/wackamole/files/patch-wackamole.c
new file mode 100644
index 000000000000..b2d2b36e9957
--- /dev/null
+++ b/net/wackamole/files/patch-wackamole.c
@@ -0,0 +1,20 @@
+--- wackamole.c.orig 2011-05-12 02:43:02.000000000 +0200
++++ wackamole.c 2011-05-12 02:46:20.000000000 +0200
+@@ -911,7 +911,7 @@
+ wack_alarm(PRINT, "%d %s", __LINE__, if_error());
+ else {
+ char buffer[16];
+- snprintf(buffer, 16, inet_ntoa(iface.ipaddr));
++ snprintf(buffer, 16, "%s", inet_ntoa(iface.ipaddr));
+ wack_alarm(PRINT, " UP: %s:%s/%s",
+ iface.ifname,buffer,inet_ntoa(iface.netmask));
+ }
+@@ -954,7 +954,7 @@
+ }
+ } else {
+ char buffer[16];
+- snprintf(buffer, 16, inet_ntoa(idown.ipaddr));
++ snprintf(buffer, 16, "%s", inet_ntoa(idown.ipaddr));
+ wack_alarm(PRINT, "DOWN: %s:%s/%s",
+ idown.ifname,buffer,inet_ntoa(idown.netmask));
+ }