diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-02-06 13:30:31 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-02-06 13:30:31 +0000 |
commit | ed4d1c46a27632aa553e7c24c969262bfc2d5c97 (patch) | |
tree | d44f2702502c982570c85130c91c845a83ea8052 /usr.bin/passwd | |
parent | 8bf216d4a39b268cd561eb5e3a90ba41ef5e733f (diff) | |
download | src-ed4d1c46a27632aa553e7c24c969262bfc2d5c97.tar.gz src-ed4d1c46a27632aa553e7c24c969262bfc2d5c97.zip |
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
Notes
Notes:
svn path=/head/; revision=90297
Diffstat (limited to 'usr.bin/passwd')
-rw-r--r-- | usr.bin/passwd/yp_passwd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/passwd/yp_passwd.c b/usr.bin/passwd/yp_passwd.c index fb39c7650a19..16a4a134b156 100644 --- a/usr.bin/passwd/yp_passwd.c +++ b/usr.bin/passwd/yp_passwd.c @@ -50,7 +50,7 @@ #include <err.h> #include "yppasswd_private.h" -extern char *getnewpasswd __P(( struct passwd * , int )); +extern char *getnewpasswd(struct passwd *, int); int yp_passwd(char *user) @@ -130,7 +130,7 @@ for other users"); /* Get old password */ - if(pw->pw_passwd[0] && !suser_override) { + if (pw->pw_passwd[0] && !suser_override) { yppasswd.oldpass = strdup(getpass("Old Password: ")); if (strcmp(crypt(yppasswd.oldpass, pw->pw_passwd), pw->pw_passwd)) { @@ -193,7 +193,7 @@ for other users"); clnt_destroy(clnt); if (err.re_status != RPC_SUCCESS || status == NULL || *status) { - errx(1, "failed to change NIS password: %s", + errx(1, "failed to change NIS password: %s", clnt_sperrno(err.re_status)); } |