From 9ee7da8230adead93a1b42b1ac2c78e02227fe15 Mon Sep 17 00:00:00 2001 From: hjl Date: Wed, 21 Mar 2001 19:20:11 +0000 Subject: 2001-03-21 H.J. Lu * nfs-utils.spec: Regenerated. (Release): Set to 3. 2001-03-21 Ion Badulescu * utils/statd/statd.c (main): make sure file descriptors 0-2 are open to /dev/null. 2001-03-21 H.J. Lu * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10. * support/nfs/rpcmisc.c: Likewise. * utils/rquotad/rquota_svc.c: Likewise. * utils/rquotad/rquotad.man: Likewise. * utils/statd/Makefile: Likewise. * utils/statd/rmtcall.c: Likewise. * utils/statd/simulate.c: Likewise. * utils/statd/statd.c: Likewise. * utils/statd/statd.man: Likewise. --- support/include/rpcmisc.h | 2 ++ support/nfs/rpcmisc.c | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'support') 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; -- cgit