svn commit: r283810 - head/usr.sbin/pw

Baptiste Daroussin bapt at FreeBSD.org
Sun May 31 10:14:14 UTC 2015


Author: bapt
Date: Sun May 31 10:14:13 2015
New Revision: 283810
URL: https://svnweb.freebsd.org/changeset/base/283810

Log:
  Remove uneeded intermediate variable

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

Modified: head/usr.sbin/pw/grupd.c
==============================================================================
--- head/usr.sbin/pw/grupd.c	Sun May 31 10:02:01 2015	(r283809)
+++ head/usr.sbin/pw/grupd.c	Sun May 31 10:14:13 2015	(r283810)
@@ -116,9 +116,6 @@ chggrent(char const * login, struct grou
 int
 delgrent(struct group * grp)
 {
-	char group[MAXLOGNAME];
 
-	strlcpy(group, grp->gr_name, MAXLOGNAME);
-
-	return gr_update(NULL, group);
+	return (gr_update(NULL, grp->gr_name));
 }


More information about the svn-src-all mailing list