From f85508dcdcb0d086ce920b7744f38c7742b01edb Mon Sep 17 00:00:00 2001 From: millert <> Date: Mon, 5 Mar 2007 20:29:14 +0000 Subject: [PATCH] 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@ --- src/include/netgroup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/netgroup.h b/src/include/netgroup.h index 23a76a73..c6f2cbfc 100644 --- a/src/include/netgroup.h +++ b/src/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);