Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 May 2015 10:18:11 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283811 - head/usr.sbin/pw
Message-ID:  <201505311018.t4VAIBJN041259@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sun May 31 10:18:10 2015
New Revision: 283811
URL: https://svnweb.freebsd.org/changeset/base/283811

Log:
  Remove uneeded intermediate variable

Modified:
  head/usr.sbin/pw/pwupd.c

Modified: head/usr.sbin/pw/pwupd.c
==============================================================================
--- head/usr.sbin/pw/pwupd.c	Sun May 31 10:14:13 2015	(r283810)
+++ head/usr.sbin/pw/pwupd.c	Sun May 31 10:18:10 2015	(r283811)
@@ -162,9 +162,6 @@ chgpwent(char const * login, struct pass
 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));
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505311018.t4VAIBJN041259>