summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.ypxfrd
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-02-06 13:30:31 +0000
committerdes <des@FreeBSD.org>2002-02-06 13:30:31 +0000
commit0f2cb9b020b907000a28323fc57a82fdb7d6626d (patch)
treed44f2702502c982570c85130c91c845a83ea8052 /usr.sbin/rpc.ypxfrd
parent0e1bb965cc26648289a6a22baf0ad5ef4891edb4 (diff)
downloadFreeBSD-src-0f2cb9b020b907000a28323fc57a82fdb7d6626d.zip
FreeBSD-src-0f2cb9b020b907000a28323fc57a82fdb7d6626d.tar.gz
Apply the following mechanical transformations in preparation for
ansification and constification: s{\s+__P\((\(.*?\))\)}{$1}g; s{\(\s+}{\(}g; s{\s+\)}{\)}g; s{\s+,}{,}g; s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g; s{return ([^\(].*?);}{return ($1);}g; s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g; s{\s+$}{\n};g Also add $FreeBSD$ where needed. MFC after: 1 week
Diffstat (limited to 'usr.sbin/rpc.ypxfrd')
-rw-r--r--usr.sbin/rpc.ypxfrd/ypxfrd_extern.h10
-rw-r--r--usr.sbin/rpc.ypxfrd/ypxfrd_main.c2
-rw-r--r--usr.sbin/rpc.ypxfrd/ypxfrd_server.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/rpc.ypxfrd/ypxfrd_extern.h b/usr.sbin/rpc.ypxfrd/ypxfrd_extern.h
index 4fb51ec..5aba934 100644
--- a/usr.sbin/rpc.ypxfrd/ypxfrd_extern.h
+++ b/usr.sbin/rpc.ypxfrd/ypxfrd_extern.h
@@ -42,9 +42,9 @@
extern int forked;
extern int children;
-extern void load_securenets __P(( void ));
-extern void yp_error __P((const char *, ...));
-extern int yp_access __P((const char *, const struct svc_req * ));
-extern int yp_validdomain __P((const char * ));
+extern void load_securenets(void);
+extern void yp_error(const char *, ...);
+extern int yp_access(const char *, const struct svc_req *);
+extern int yp_validdomain(const char *);
extern char *yp_dir;
-extern void ypxfrd_freebsd_prog_1 __P(( struct svc_req *, register SVCXPRT * ));
+extern void ypxfrd_freebsd_prog_1(struct svc_req *, register SVCXPRT *);
diff --git a/usr.sbin/rpc.ypxfrd/ypxfrd_main.c b/usr.sbin/rpc.ypxfrd/ypxfrd_main.c
index e83b997..511539e 100644
--- a/usr.sbin/rpc.ypxfrd/ypxfrd_main.c
+++ b/usr.sbin/rpc.ypxfrd/ypxfrd_main.c
@@ -204,7 +204,7 @@ main(argc, argv)
int ch;
while ((ch = getopt(argc, argv, "p:h")) != -1) {
- switch(ch) {
+ switch (ch) {
case 'p':
yp_dir = optarg;
break;
diff --git a/usr.sbin/rpc.ypxfrd/ypxfrd_server.c b/usr.sbin/rpc.ypxfrd/ypxfrd_server.c
index 1a4b2e5..f1b6ba1 100644
--- a/usr.sbin/rpc.ypxfrd/ypxfrd_server.c
+++ b/usr.sbin/rpc.ypxfrd/ypxfrd_server.c
@@ -58,7 +58,7 @@ xdr_my_xfr(register XDR *xdrs, xfr *objp)
{
unsigned char buf[XFRBLOCKSIZE];
- while(1) {
+ while (1) {
if ((objp->xfr_u.xfrblock_buf.xfrblock_buf_len =
read(fp, &buf, XFRBLOCKSIZE)) != -1) {
objp->ok = TRUE;
OpenPOWER on IntegriCloud