diff options
author | des <des@FreeBSD.org> | 2002-02-06 13:30:31 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-02-06 13:30:31 +0000 |
commit | 0f2cb9b020b907000a28323fc57a82fdb7d6626d (patch) | |
tree | d44f2702502c982570c85130c91c845a83ea8052 /usr.sbin/rpc.yppasswdd/yppasswdd_server.c | |
parent | 0e1bb965cc26648289a6a22baf0ad5ef4891edb4 (diff) | |
download | FreeBSD-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.yppasswdd/yppasswdd_server.c')
-rw-r--r-- | usr.sbin/rpc.yppasswdd/yppasswdd_server.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/rpc.yppasswdd/yppasswdd_server.c b/usr.sbin/rpc.yppasswdd/yppasswdd_server.c index d61390d..ab70560 100644 --- a/usr.sbin/rpc.yppasswdd/yppasswdd_server.c +++ b/usr.sbin/rpc.yppasswdd/yppasswdd_server.c @@ -76,7 +76,7 @@ void reaper(sig) if (sig > 0) { if (sig == SIGCHLD) - while(wait3(&st, WNOHANG, NULL) > 0) ; + while (wait3(&st, WNOHANG, NULL) > 0) ; } else { pid = waitpid(pid, &pstat, 0); } @@ -538,7 +538,7 @@ yppasswdproc_update_1_svc(yppasswd *argp, struct svc_req *rqstp) key.data = argp->newpw.pw_name; key.size = strlen(argp->newpw.pw_name); - if ((rval=yp_get_record(domain,"master.passwd.byname", + if ((rval = yp_get_record(domain,"master.passwd.byname", &key, &data, 0)) != YP_TRUE) { if (rval == YP_NOKEY) { yp_error("user %s not found in passwd database", @@ -642,7 +642,7 @@ cleaning up and bailing out"); } } - switch((pid = fork())) { + switch ((pid = fork())) { case 0: if (inplace && !rval) { execlp(MAP_UPDATE_PATH, MAP_UPDATE, passfile, @@ -733,7 +733,7 @@ procedure!\n", inet_ntoa(rqhost->sin_addr), rqhost->sin_port); svcerr_auth(transp, AUTH_BADCRED); return(&result); } - + if (uid) { yp_error("caller euid is %d, expecting 0 -- rejecting request", uid); @@ -794,7 +794,7 @@ allow additions to be made to the password database"); snprintf(passfile_buf, sizeof(passfile_buf), "%s/%s/master.passwd", yp_dir, argp->domain); passfile = (char *)&passfile_buf; - } + } if ((pfd = pw_lock()) < 0) { return (&result); @@ -828,7 +828,7 @@ cleaning up and bailing out"); } } - switch((pid = fork())) { + switch ((pid = fork())) { case 0: if (inplace && !rval) { execlp(MAP_UPDATE_PATH, MAP_UPDATE, passfile, |