summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
Diffstat (limited to 'support')
-rw-r--r--support/include/rpcmisc.h2
-rw-r--r--support/nfs/rpcmisc.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/support/include/rpcmisc.h b/support/include/rpcmisc.h
index d999ab9..a2b2b5a 100644
--- a/support/include/rpcmisc.h
+++ b/support/include/rpcmisc.h
@@ -41,6 +41,8 @@ struct rpc_dtable {
(xdrproc_t)xdr_##res_type, sizeof(res_type), \
}
+
+int makesock(int port, int proto);
void rpc_init(char *name, int prog, int vers,
void (*dispatch)(struct svc_req *, SVCXPRT *),
int defport);
diff --git a/support/nfs/rpcmisc.c b/support/nfs/rpcmisc.c
index 7a9de1c..4c0906d 100644
--- a/support/nfs/rpcmisc.c
+++ b/support/nfs/rpcmisc.c
@@ -33,7 +33,7 @@
#include "nfslib.h"
static void closedown(int sig);
-static int makesock(int port, int proto);
+int makesock(int port, int proto);
#define _RPCSVC_CLOSEDOWN 120
int _rpcpmstart = 0;
@@ -145,9 +145,7 @@ int sig;
(void) alarm(_RPCSVC_CLOSEDOWN);
}
-static int makesock(port, proto)
-int port;
-int proto;
+int makesock(int port, int proto)
{
struct sockaddr_in sin;
int s;