From:
[email protected]
Package: portmap
Version: 5-4
Tags: patch
I was going to do some work on portmap, but ended up fixing a bunch of compilation warnings instead. This patch changes no functionality, but does eliminate nearly all warnings generated by gcc 2.95 -Wall.
diff -uNrb -x CVS -x *~ -x *.o portmap-5.orig/from_local.c portmap-5/from_local.c
--- portmap-5.orig/from_local.c Thu Aug 12 16:42:23 2004
+++ portmap-5/from_local.c Thu Aug 12 16:47:41 2004
@@ -99,6 +99,7 @@
/* find_local - find all IP addresses for this host */
+int
find_local()
{
struct ifconf ifc;
@@ -157,6 +158,7 @@
/* from_local - determine whether request comes from the local system */
+int
from_local(addr)
struct sockaddr_in *addr;
{
diff -uNrb -x CVS -x *~ -x *.o portmap-5.orig/pmap_check.c portmap-5/pmap_check.c
--- portmap-5.orig/pmap_check.c Thu Aug 12 16:42:23 2004
+++ portmap-5/pmap_check.c Thu Aug 12 16:50:31 2004
@@ -123,6 +123,7 @@
/* check_default - additional checks for NULL, DUMP, GETPORT and unknown */
+int
check_default(addr, proc, prog)
struct sockaddr_in *addr;
u_long proc;
@@ -141,6 +142,7 @@
/* check_privileged_port - additional checks for privileged-port updates */
+int
check_privileged_port(addr, proc, prog, port)
struct sockaddr_in *addr;
u_long proc;
@@ -186,6 +188,7 @@
#else
+int
chec