diff options
author | wpaul <wpaul@FreeBSD.org> | 1998-01-19 23:31:38 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1998-01-19 23:31:38 +0000 |
commit | 73bd479ece8b41203de86efb37cf3c3088b81c7b (patch) | |
tree | ef5b9e79bd7e7ca28aa0ec0e6a54613c54e7203d /usr.sbin/ypbind | |
parent | ec7457e7f1d4df211e3a0c8477d9092861849499 (diff) | |
download | FreeBSD-src-73bd479ece8b41203de86efb37cf3c3088b81c7b.zip FreeBSD-src-73bd479ece8b41203de86efb37cf3c3088b81c7b.tar.gz |
Also fix ypbind to compile with ANSI-fied /usr/include/rpcsvc. One of
these days I really should rerwite this creature from the ground up.
Diffstat (limited to 'usr.sbin/ypbind')
-rw-r--r-- | usr.sbin/ypbind/yp_ping.c | 4 | ||||
-rw-r--r-- | usr.sbin/ypbind/ypbind.c | 18 |
2 files changed, 11 insertions, 11 deletions
diff --git a/usr.sbin/ypbind/yp_ping.c b/usr.sbin/ypbind/yp_ping.c index 6550ab0..bc6d319 100644 --- a/usr.sbin/ypbind/yp_ping.c +++ b/usr.sbin/ypbind/yp_ping.c @@ -72,7 +72,7 @@ static char *sccsid = "@(#)from: clnt_udp.c 1.39 87/08/11 Copyr 1984 Sun Micro"; static char *sccsid = "@(#)from: clnt_udp.c 2.2 88/08/01 4.0 RPCSRC"; #endif static const char rcsid[] = - "$Id$"; + "$Id: yp_ping.c,v 1.3 1997/10/27 07:45:45 charnier Exp $"; #endif /* @@ -451,7 +451,7 @@ int __yp_ping(restricted_addrs, cnt, dom, port) struct timeval tv = { 5 , 0 }; struct ping_req **reqs; unsigned long i; - struct sockaddr_in sin, *any; + struct sockaddr_in sin, *any = NULL; int winner = -1; time_t xid_seed, xid_lookup; int sock, dontblock = 1; diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c index 5c893f7..752ff93 100644 --- a/usr.sbin/ypbind/ypbind.c +++ b/usr.sbin/ypbind/ypbind.c @@ -29,7 +29,7 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: ypbind.c,v 1.26 1997/10/27 07:45:47 charnier Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -96,8 +96,8 @@ extern bool_t xdr_ypreq_key(), xdr_ypresp_val(); extern bool_t xdr_ypbind_setdom(); void checkwork __P((void)); -void *ypbindproc_null_2 __P((SVCXPRT *, void *, CLIENT *)); -void *ypbindproc_setdom_2 __P((SVCXPRT *, struct ypbind_setdom *, CLIENT *)); +void *ypbindproc_null_2_yp __P((SVCXPRT *, void *, CLIENT *)); +void *ypbindproc_setdom_2_yp __P((SVCXPRT *, struct ypbind_setdom *, CLIENT *)); void rpc_received __P((char *, struct sockaddr_in *, int )); void broadcast __P((struct _dom_binding *)); int ping __P((struct _dom_binding *)); @@ -156,7 +156,7 @@ fd_set fdsr; SVCXPRT *udptransp, *tcptransp; void * -ypbindproc_null_2(transp, argp, clnt) +ypbindproc_null_2_yp(transp, argp, clnt) SVCXPRT *transp; void *argp; CLIENT *clnt; @@ -168,7 +168,7 @@ CLIENT *clnt; } struct ypbind_resp * -ypbindproc_domain_2(transp, argp, clnt) +ypbindproc_domain_2_yp(transp, argp, clnt) SVCXPRT *transp; domainname *argp; CLIENT *clnt; @@ -241,7 +241,7 @@ rejecting.", *argp); } void * -ypbindproc_setdom_2(transp, argp, clnt) +ypbindproc_setdom_2_yp(transp, argp, clnt) SVCXPRT *transp; ypbind_setdom *argp; CLIENT *clnt; @@ -307,13 +307,13 @@ register SVCXPRT *transp; case YPBINDPROC_NULL: xdr_argument = xdr_void; xdr_result = xdr_void; - local = (char *(*)()) ypbindproc_null_2; + local = (char *(*)()) ypbindproc_null_2_yp; break; case YPBINDPROC_DOMAIN: xdr_argument = xdr_domainname; xdr_result = xdr_ypbind_resp; - local = (char *(*)()) ypbindproc_domain_2; + local = (char *(*)()) ypbindproc_domain_2_yp; break; case YPBINDPROC_SETDOM: @@ -332,7 +332,7 @@ register SVCXPRT *transp; xdr_argument = xdr_ypbind_setdom; xdr_result = xdr_void; - local = (char *(*)()) ypbindproc_setdom_2; + local = (char *(*)()) ypbindproc_setdom_2_yp; break; default: |