1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

Remove uneeded intermediate variable

This commit is contained in:
Baptiste Daroussin 2015-05-31 10:18:10 +00:00
parent e55af20b47
commit 850f836ad8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283811

View File

@ -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));
}