From: Ulrich Drepper Date: Tue, 5 Feb 2002 23:29:42 +0000 (+0000) Subject: (innetgr): Add int* parameter to getfct definition and pass &errno in use of X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82c5c703dac3deb80df0273cd5d4d91729c67879;p=thirdparty%2Fglibc.git (innetgr): Add int* parameter to getfct definition and pass &errno in use of this variable. --- diff --git a/inet/getnetgrent_r.c b/inet/getnetgrent_r.c index 4c3a1cadfe3..ba1019c1f82 100644 --- a/inet/getnetgrent_r.c +++ b/inet/getnetgrent_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998, 1999, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -298,7 +298,7 @@ innetgr (const char *netgroup, const char *host, const char *user, { int (*setfct) (const char *, struct __netgrent *); void (*endfct) (struct __netgrent *); - int (*getfct) (struct __netgrent *, char *, size_t); + int (*getfct) (struct __netgrent *, char *, size_t, int *); struct name_list *known = NULL; struct name_list *needed = NULL; int result = 0; @@ -328,7 +328,7 @@ innetgr (const char *netgroup, const char *host, const char *user, { char buffer[1024]; - while ((*getfct) (&entry, buffer, sizeof buffer) + while ((*getfct) (&entry, buffer, sizeof buffer, &errno) == NSS_STATUS_SUCCESS) { if (entry.type == group_val)