diff options
Diffstat (limited to 'usr.sbin/ypserv/yppush')
-rw-r--r-- | usr.sbin/ypserv/yppush/yppush.c | 8 | ||||
-rw-r--r-- | usr.sbin/ypserv/yppush/yppush_svc.c | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/ypserv/yppush/yppush.c b/usr.sbin/ypserv/yppush/yppush.c index b0195f9dba9..05bf1ba26c5 100644 --- a/usr.sbin/ypserv/yppush/yppush.c +++ b/usr.sbin/ypserv/yppush/yppush.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yppush.c,v 1.23 2005/09/16 23:53:08 deraadt Exp $ */ +/* $OpenBSD: yppush.c,v 1.24 2006/04/03 05:01:23 deraadt Exp $ */ /* * Copyright (c) 1995 Mats O Jansson <moj@stacken.kth.se> @@ -27,7 +27,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: yppush.c,v 1.23 2005/09/16 23:53:08 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: yppush.c,v 1.24 2006/04/03 05:01:23 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -154,12 +154,12 @@ push(int inlen, char *indata) pid_t pid; struct rusage res; - snprintf(host, sizeof host, "%*.*s" ,inlen ,inlen, indata); + snprintf(host, sizeof host, "%*.*s", inlen, inlen, indata); client = clnt_create(host, YPPROG, YPVERS, "tcp"); if (client == NULL) { if (Verbose) - fprintf(stderr, "Target Host: %s\n",host); + fprintf(stderr, "Target Host: %s\n", host); clnt_pcreateerror("yppush: Cannot create client"); return; } diff --git a/usr.sbin/ypserv/yppush/yppush_svc.c b/usr.sbin/ypserv/yppush/yppush_svc.c index d42dc65941a..60bcc903a9d 100644 --- a/usr.sbin/ypserv/yppush/yppush_svc.c +++ b/usr.sbin/ypserv/yppush/yppush_svc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yppush_svc.c,v 1.11 2003/07/15 06:10:46 deraadt Exp $ */ +/* $OpenBSD: yppush_svc.c,v 1.12 2006/04/03 05:01:23 deraadt Exp $ */ /* * Copyright (c) 1996 Mats O Jansson <moj@stacken.kth.se> @@ -27,7 +27,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: yppush_svc.c,v 1.11 2003/07/15 06:10:46 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: yppush_svc.c,v 1.12 2006/04/03 05:01:23 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -97,8 +97,8 @@ yppush_xfrrespprog_1(struct svc_req *rqstp, SVCXPRT *transp) exit(1); return; } - (void) memset((char *)&argument, 0, sizeof (argument)); - if (!svc_getargs(transp, xdr_argument, (caddr_t) &argument)) { + (void) memset(&argument, 0, sizeof(argument)); + if (!svc_getargs(transp, xdr_argument, (caddr_t)&argument)) { svcerr_decode(transp); _rpcsvcdirty = 0; exit(1); @@ -108,7 +108,7 @@ yppush_xfrrespprog_1(struct svc_req *rqstp, SVCXPRT *transp) if (result != NULL && !svc_sendreply(transp, xdr_result, result)) { svcerr_systemerr(transp); } - if (!svc_freeargs(transp, xdr_argument, (caddr_t) &argument)) { + if (!svc_freeargs(transp, xdr_argument, (caddr_t)&argument)) { _msgout("unable to free arguments"); exit(1); } |