svn commit: r245386 - head/lib/libutil
Mateusz Guzik
mjg at FreeBSD.org
Sun Jan 13 21:26:58 UTC 2013
Author: mjg
Date: Sun Jan 13 21:26:57 2013
New Revision: 245386
URL: http://svnweb.freebsd.org/changeset/base/245386
Log:
libutil: move group_line_format into the scop of its only user.
Submitted by: Christoph Mallon <christoph.mallon gmx.de>
Modified:
head/lib/libutil/gr_util.c
Modified: head/lib/libutil/gr_util.c
==============================================================================
--- head/lib/libutil/gr_util.c Sun Jan 13 21:25:43 2013 (r245385)
+++ head/lib/libutil/gr_util.c Sun Jan 13 21:26:57 2013 (r245386)
@@ -50,8 +50,6 @@ static char group_file[PATH_MAX];
static char tempname[PATH_MAX];
static int initialized;
-static const char group_line_format[] = "%s:%s:%ju:";
-
/*
* Initialize statics
*/
@@ -391,6 +389,7 @@ gr_equal(const struct group *gr1, const
char *
gr_make(const struct group *gr)
{
+ const char *group_line_format = "%s:%s:%ju:";
char *line;
size_t line_size;
int ndx;
More information about the svn-src-head
mailing list