summaryrefslogtreecommitdiffstats
path: root/libutil/libutil.h
diff options
context:
space:
mode:
authorDiane Bruce <db@FreeBSD.org>2013-03-07 19:00:00 +0000
committerDiane Bruce <db@FreeBSD.org>2013-03-07 19:00:00 +0000
commitf57a7b6423b21ca5914ceb391253a718ef12fb4f (patch)
tree19d2e5dce667b44b2561b32ef1c666f69e0cf420 /libutil/libutil.h
parent496692e30905aa38932d451f3324c659231b9e84 (diff)
downloadpw-darwin-f57a7b6423b21ca5914ceb391253a718ef12fb4f.tar.gz
pw-darwin-f57a7b6423b21ca5914ceb391253a718ef12fb4f.tar.zst
pw-darwin-f57a7b6423b21ca5914ceb391253a718ef12fb4f.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
Diffstat (limited to 'libutil/libutil.h')
-rw-r--r--libutil/libutil.h2
1 files changed, 1 insertions, 1 deletions
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);