aboutsummaryrefslogtreecommitdiffstats
path: root/package/netplug
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2008-02-28 02:19:38 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2008-02-28 02:19:38 +0000
commitbafa6d62cd6d7b7a0a2032ed8293cc2e1c4cab48 (patch)
treeda5cc4e51fd16d21f2010f349c6bafffa2aeb00f /package/netplug
parentbebbe792df26f355f82da8d7508f719f56a8a559 (diff)
downloadbuildroot-novena-bafa6d62cd6d7b7a0a2032ed8293cc2e1c4cab48.tar.gz
buildroot-novena-bafa6d62cd6d7b7a0a2032ed8293cc2e1c4cab48.zip
Remove old patch and fix the type properly.
Diffstat (limited to 'package/netplug')
-rw-r--r--package/netplug/netplug-getsockname-cast.patch12
-rw-r--r--package/netplug/netplug-socklen-type.patch12
2 files changed, 12 insertions, 12 deletions
diff --git a/package/netplug/netplug-getsockname-cast.patch b/package/netplug/netplug-getsockname-cast.patch
deleted file mode 100644
index c8e38e6f9..000000000
--- a/package/netplug/netplug-getsockname-cast.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ur netplug-1.2.9/netlink.c netplug-1.2.9-patched/netlink.c
---- netplug-1.2.9/netlink.c 2005-01-07 23:57:09.000000000 -0600
-+++ netplug-1.2.9-patched/netlink.c 2008-02-27 17:59:48.373864047 -0600
-@@ -286,7 +286,7 @@
-
- int addr_len = sizeof(addr);
-
-- if (getsockname(fd, (struct sockaddr *) &addr, &addr_len) == -1) {
-+ if (getsockname(fd, (struct sockaddr *) &addr, (socklen_t *) &addr_len) == -1) {
- do_log(LOG_ERR, "Could not get socket details: %m");
- exit(1);
- }
diff --git a/package/netplug/netplug-socklen-type.patch b/package/netplug/netplug-socklen-type.patch
new file mode 100644
index 000000000..1e3698823
--- /dev/null
+++ b/package/netplug/netplug-socklen-type.patch
@@ -0,0 +1,12 @@
+diff -ur netplug-1.2.9/netlink.c netplug-1.2.9-patched/netlink.c
+--- netplug-1.2.9/netlink.c 2005-01-07 23:57:09.000000000 -0600
++++ netplug-1.2.9-patched/netlink.c 2008-02-27 20:18:09.855767996 -0600
+@@ -284,7 +284,7 @@
+ exit(1);
+ }
+
+- int addr_len = sizeof(addr);
++ socklen_t addr_len = sizeof(addr);
+
+ if (getsockname(fd, (struct sockaddr *) &addr, &addr_len) == -1) {
+ do_log(LOG_ERR, "Could not get socket details: %m");