summaryrefslogtreecommitdiffstats
path: root/lib/libutil/libutil.h
diff options
context:
space:
mode:
authordb <db@FreeBSD.org>2013-03-07 19:00:00 +0000
committerdb <db@FreeBSD.org>2013-03-07 19:00:00 +0000
commitf96d697f81a51961083af1ae87a450c6441bd5ef (patch)
tree80d2ff407b258a3ca3a6b3a209da2a5eca89401c /lib/libutil/libutil.h
parenta1b987fb96fceedb0c447645ff9785d5cbd8cd1a (diff)
downloadFreeBSD-src-f96d697f81a51961083af1ae87a450c6441bd5ef.zip
FreeBSD-src-f96d697f81a51961083af1ae87a450c6441bd5ef.tar.gz
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
Diffstat (limited to 'lib/libutil/libutil.h')
-rw-r--r--lib/libutil/libutil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h
index b1b2405..b8b9836 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);
OpenPOWER on IntegriCloud