]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
libutil: move group_line_format into the scop of its only user.
authorMateusz Guzik <mjg@FreeBSD.org>
Sun, 13 Jan 2013 21:26:57 +0000 (21:26 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Sun, 13 Jan 2013 21:26:57 +0000 (21:26 +0000)
Submitted by: Christoph Mallon <christoph.mallon gmx.de>

libutil/gr_util.c

index 5e35ebed780cf9a0fdc0492473f7ac45c75692ec..70a4c03a5609702835d3c0755010f3fb3943c6af 100644 (file)
@@ -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 struct group *gr2)
 char *
 gr_make(const struct group *gr)
 {
+       const char *group_line_format = "%s:%s:%ju:";
        char *line;
        size_t line_size;
        int ndx;