summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorhjl <hjl>2001-03-11 02:54:00 +0000
committerhjl <hjl>2001-03-11 02:54:00 +0000
commit012d7fd50654b1623e63c447905187929e559cff (patch)
tree6b2ad84bd781cfae44fd9eeba4c83b5e203ff05d /support
parent37f276f0627733598230b3953e07be146257619f (diff)
downloadnfs-utils-012d7fd50654b1623e63c447905187929e559cff.tar.gz
nfs-utils-012d7fd50654b1623e63c447905187929e559cff.tar.xz
nfs-utils-012d7fd50654b1623e63c447905187929e559cff.zip
2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
* utils/rquotad/rquotad.man: Updated for -p. * utils/statd/statd.man: Likewise. 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu> * support/nfs/rpcmisc.[ch]: export makesock() * utils/statd/statd.c: added longopts, added support for specifying the port to bind to on the command line. * utils/statd/statd.c: ditto, also specify port used for outgoing connections. * utils/statd/Makefile (LIBS): link with our own libnfs
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;