diff options
author | Diane Bruce <db@FreeBSD.org> | 2013-03-07 19:00:00 +0000 |
---|---|---|
committer | Diane Bruce <db@FreeBSD.org> | 2013-03-07 19:00:00 +0000 |
commit | 86e2f99d4065f10c38907f515d2c7824a0695615 (patch) | |
tree | 80d2ff407b258a3ca3a6b3a209da2a5eca89401c /lib/libutil/libutil.h | |
parent | 34d3281c57b1ff9ef466797a7663ebd3a32ab7b4 (diff) | |
download | src-86e2f99d4065f10c38907f515d2c7824a0695615.tar.gz src-86e2f99d4065f10c38907f515d2c7824a0695615.zip |
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
Notes
Notes:
svn path=/head/; revision=247919
Diffstat (limited to 'lib/libutil/libutil.h')
-rw-r--r-- | lib/libutil/libutil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h index b1b2405fb272..b8b9836b0fdf 100644 --- a/lib/libutil/libutil.h +++ b/lib/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); |