From f57a7b6423b21ca5914ceb391253a718ef12fb4f Mon Sep 17 00:00:00 2001 From: Diane Bruce Date: Thu, 7 Mar 2013 19:00:00 +0000 Subject: Cleanup gr_add() so it does not leak mem This is part of ongoing work on sbin/pw M libutil.h M gr_util.c Approved by: theraven --- libutil/libutil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libutil/libutil.h') diff --git a/libutil/libutil.h b/libutil/libutil.h index b1b2405..b8b9836 100644 --- a/libutil/libutil.h +++ b/libutil/libutil.h @@ -167,7 +167,7 @@ int gr_copy(int __ffd, int _tfd, const struct group *_gr, struct group * gr_dup(const struct group *_gr); struct group * - gr_add(struct group *_gr, char *_newmember); + gr_add(const struct group *_gr, const char *_newmember); int gr_equal(const struct group *_gr1, const struct group *_gr2); void gr_fini(void); int gr_init(const char *_dir, const char *_master); -- cgit v1.2.3