diff options
author | bapt <bapt@FreeBSD.org> | 2015-05-31 10:18:10 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-05-31 10:18:10 +0000 |
commit | dd2cfeb01c87221fe780044ec38b07b7e0b56637 (patch) | |
tree | 2a59d6fb1e1f37395fc5c0a3d5957c0a978d7177 /usr.sbin/pw/pwupd.c | |
parent | 72cc9d055f3239c3a75f9d920c82dd2171ba66cb (diff) | |
download | FreeBSD-src-dd2cfeb01c87221fe780044ec38b07b7e0b56637.zip FreeBSD-src-dd2cfeb01c87221fe780044ec38b07b7e0b56637.tar.gz |
Remove uneeded intermediate variable
Diffstat (limited to 'usr.sbin/pw/pwupd.c')
-rw-r--r-- | usr.sbin/pw/pwupd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/pw/pwupd.c b/usr.sbin/pw/pwupd.c index 710e901..89d0856 100644 --- a/usr.sbin/pw/pwupd.c +++ b/usr.sbin/pw/pwupd.c @@ -162,9 +162,6 @@ chgpwent(char const * login, struct passwd * pwd) int delpwent(struct passwd * pwd) { - char login[MAXLOGNAME]; - - strlcpy(login, pwd->pw_name, MAXLOGNAME); - return (pw_update(NULL, login)); + return (pw_update(NULL, pwd->pw_name)); } |