mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Remove uneeded intermediate variable
This commit is contained in:
parent
e55af20b47
commit
850f836ad8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283811
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user