diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-30 19:09:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-30 19:09:07 +0000 |
commit | 22faa0a671e92f0076f8972f1f7aa74766d489a5 (patch) | |
tree | 97a8c7121964d389a3cbd917096e456c04c013c1 /usr.sbin/ypset | |
parent | d1745b0530a8fcf3ec033c201f02d150ce37d224 (diff) |
minor KNF
Diffstat (limited to 'usr.sbin/ypset')
-rw-r--r-- | usr.sbin/ypset/ypset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ypset/ypset.c b/usr.sbin/ypset/ypset.c index 2cdd551133a..04651ce7182 100644 --- a/usr.sbin/ypset/ypset.c +++ b/usr.sbin/ypset/ypset.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ypset.c,v 1.5 1997/07/21 19:18:34 deraadt Exp $ */ +/* $OpenBSD: ypset.c,v 1.6 2002/05/30 19:09:06 deraadt Exp $ */ /* $NetBSD: ypset.c,v 1.8 1996/05/13 02:46:33 thorpej Exp $ */ /* @@ -34,7 +34,7 @@ */ #ifndef LINT -static char rcsid[] = "$OpenBSD: ypset.c,v 1.5 1997/07/21 19:18:34 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ypset.c,v 1.6 2002/05/30 19:09:06 deraadt Exp $"; #endif #include <sys/param.h> @@ -73,7 +73,7 @@ char *dom, *server; int sock, port; int r; struct in_addr iaddr; - + if( (port=htons(getrpcport(server, YPPROG, YPPROC_NULL, IPPROTO_UDP))) == 0) { fprintf(stderr, "%s not running ypserv.\n", server); exit(1); @@ -95,7 +95,7 @@ char *dom, *server; bcopy(&port, &ypsd.ypsetdom_binding.ypbind_binding_port, sizeof(ypsd.ypsetdom_binding.ypbind_binding_port)); ypsd.ypsetdom_vers = YPVERS; - + tv.tv_sec = 15; tv.tv_usec = 0; sock = RPC_ANYSOCK; |