diff options
author | bapt <bapt@FreeBSD.org> | 2015-05-10 09:02:15 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-05-10 09:02:15 +0000 |
commit | cac4a2a5a509ca298bf50a4564d544a14fd1f0eb (patch) | |
tree | 8b94ad6603b6303323408add3bba5a7495a3c433 /usr.sbin/pw/pwupd.c | |
parent | f3713229833ccaa3860b3ed139ae4c79f529646e (diff) | |
download | FreeBSD-src-cac4a2a5a509ca298bf50a4564d544a14fd1f0eb.zip FreeBSD-src-cac4a2a5a509ca298bf50a4564d544a14fd1f0eb.tar.gz |
Some style(9) fixes
Diffstat (limited to 'usr.sbin/pw/pwupd.c')
-rw-r--r-- | usr.sbin/pw/pwupd.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/usr.sbin/pw/pwupd.c b/usr.sbin/pw/pwupd.c index c2a9a53..e8defa3 100644 --- a/usr.sbin/pw/pwupd.c +++ b/usr.sbin/pw/pwupd.c @@ -52,12 +52,13 @@ int setpwdir(const char * dir) { if (dir == NULL) - return -1; + return (-1); else pwpath = strdup(dir); if (pwpath == NULL) - return -1; - return 0; + return (-1); + + return (0); } char * @@ -66,7 +67,8 @@ getpwpath(char const * file) static char pathbuf[MAXPATHLEN]; snprintf(pathbuf, sizeof pathbuf, "%s/%s", pwpath, file); - return pathbuf; + + return (pathbuf); } static int @@ -101,7 +103,8 @@ pwdb(char *arg,...) i = EIO; } va_end(ap); - return i; + + return (i); } static int @@ -146,19 +149,22 @@ pw_update(struct passwd * pwd, char const * user) free(pw); pw_fini(); } - return 0; + + return (0); } int addpwent(struct passwd * pwd) { - return pw_update(pwd, NULL); + + return (pw_update(pwd, NULL)); } int chgpwent(char const * login, struct passwd * pwd) { - return pw_update(pwd, login); + + return (pw_update(pwd, login)); } int @@ -167,5 +173,6 @@ delpwent(struct passwd * pwd) char login[MAXLOGNAME]; strlcpy(login, pwd->pw_name, MAXLOGNAME); - return pw_update(NULL, login); + + return (pw_update(NULL, login)); } |