diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2007-03-05 20:29:15 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2007-03-05 20:29:15 +0000 |
commit | b98fe50008bf820e7860d4f809f4dab375de6892 (patch) | |
tree | 5ae94125f39e23f8750efc654653423c474b0bb9 /include/netgroup.h | |
parent | 4c16e5fd939a3e95613d067c6fc7120f14e1befb (diff) |
Remove _err() calls from getnetgrent.c. This is a minor API change
as _ng_sl_add() now returns a value. The only consumer of that
interface is netgroup_mkdb(8). Adapted from NetBSD.
OK deraadt@
Diffstat (limited to 'include/netgroup.h')
-rw-r--r-- | include/netgroup.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/netgroup.h b/include/netgroup.h index 23a76a73ab3..c6f2cbfc125 100644 --- a/include/netgroup.h +++ b/include/netgroup.h @@ -1,4 +1,4 @@ -/* * $OpenBSD: netgroup.h,v 1.5 2002/02/17 19:42:21 millert Exp $*/ +/* * $OpenBSD: netgroup.h,v 1.6 2007/03/05 20:29:14 millert Exp $*/ /* * Copyright (c) 1994 Christos Zoulas * All rights reserved. @@ -66,7 +66,7 @@ int innetgr(const char *, const char *, const char *, const char *); struct stringlist; struct stringlist *_ng_sl_init(void); -void _ng_sl_add(struct stringlist *, char *); +int _ng_sl_add(struct stringlist *, char *); void _ng_sl_free(struct stringlist *, int); char *_ng_sl_find(struct stringlist *, char *); char *_ng_makekey(const char *, const char *, size_t); |