Browse Source

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@
OPENBSD_4_1
millert 17 years ago
parent
commit
f85508dcdc
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/include/netgroup.h

+ 2
- 2
src/include/netgroup.h View File

@ -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 * Copyright (c) 1994 Christos Zoulas
* All rights reserved. * All rights reserved.
@ -66,7 +66,7 @@ int innetgr(const char *, const char *, const char *, const char *);
struct stringlist; struct stringlist;
struct stringlist *_ng_sl_init(void); 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); void _ng_sl_free(struct stringlist *, int);
char *_ng_sl_find(struct stringlist *, char *); char *_ng_sl_find(struct stringlist *, char *);
char *_ng_makekey(const char *, const char *, size_t); char *_ng_makekey(const char *, const char *, size_t);


Loading…
Cancel
Save