aboutsummaryrefslogtreecommitdiff
path: root/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/clnt_perr.c2
-rw-r--r--sunrpc/get_myaddr.c1
-rw-r--r--sunrpc/pmap_clnt.c2
-rw-r--r--sunrpc/rpc/clnt.h9
4 files changed, 12 insertions, 2 deletions
diff --git a/sunrpc/clnt_perr.c b/sunrpc/clnt_perr.c
index 89f61f0..af0fe43 100644
--- a/sunrpc/clnt_perr.c
+++ b/sunrpc/clnt_perr.c
@@ -134,6 +134,7 @@ clnt_sperror (CLIENT * rpch, const char *msg)
break;
}
*str = '\n';
+ *++str = '\0';
return (strstart);
}
@@ -252,6 +253,7 @@ clnt_spcreateerror (const char *msg)
break;
}
*cp = '\n';
+ *++cp = '\0';
return str;
}
diff --git a/sunrpc/get_myaddr.c b/sunrpc/get_myaddr.c
index 757fe06..86277d2 100644
--- a/sunrpc/get_myaddr.c
+++ b/sunrpc/get_myaddr.c
@@ -39,6 +39,7 @@ static char sccsid[] = "@(#)get_myaddress.c 1.4 87/08/11 Copyr 1984 Sun Micro";
*/
#include <rpc/types.h>
+#include <rpc/clnt.h>
#include <rpc/pmap_prot.h>
#include <sys/socket.h>
#include <stdio.h>
diff --git a/sunrpc/pmap_clnt.c b/sunrpc/pmap_clnt.c
index 263cd13..68bdfab 100644
--- a/sunrpc/pmap_clnt.c
+++ b/sunrpc/pmap_clnt.c
@@ -42,8 +42,6 @@ static char sccsid[] = "@(#)pmap_clnt.c 1.37 87/08/11 Copyr 1984 Sun Micro";
#include <rpc/pmap_prot.h>
#include <rpc/pmap_clnt.h>
-extern void get_myaddress (struct sockaddr_in *addr);
-
static const struct timeval timeout = {5, 0};
static const struct timeval tottimeout = {60, 0};
diff --git a/sunrpc/rpc/clnt.h b/sunrpc/rpc/clnt.h
index 0991eea..38f4090 100644
--- a/sunrpc/rpc/clnt.h
+++ b/sunrpc/rpc/clnt.h
@@ -379,9 +379,18 @@ extern struct rpc_createerr rpc_createerr;
*/
extern char *clnt_sperrno __P ((enum clnt_stat __num)); /* string */
+/*
+ * get the port number on the host for the rpc program,version and proto
+ */
extern int getrpcport __P ((__const char * __host, u_long __prognum,
u_long __versnum, u_int proto));
+/*
+ * get the local host's IP address without consulting
+ * name service library functions
+ */
+extern void get_myaddress __P ((struct sockaddr_in *));
+
#define UDPMSGSIZE 8800 /* rpc imposed limit on udp msg size */
#define RPCSMALLMSGSIZE 400 /* a more reasonable packet size */