summaryrefslogtreecommitdiffstats
path: root/package/netplug/netplug-socklen-type.patch
blob: 1e36988236959cf0486452da4c045b3205bd9b23 (plain)
1
2
3
4
5
6
7
8
9
10
11
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");