Remove old patch and fix the type properly.
This commit is contained in:
parent
bebbe792df
commit
bafa6d62cd
@ -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);
|
||||
}
|
12
package/netplug/netplug-socklen-type.patch
Normal file
12
package/netplug/netplug-socklen-type.patch
Normal file
@ -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");
|
Loading…
Reference in New Issue
Block a user