From 2486480e23051b536fa2ac612b0613105ba988cf Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 13 Aug 2004 20:26:29 +0000 Subject: Update. * inet/netgroup.h (struct name_list): Replace name pointer with zero-sized array. * inet/getnetgrent_r.c: Adjust code for change in name_list layout. Numerous strdup and free calls removed. --- inet/netgroup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inet/netgroup.h') diff --git a/inet/netgroup.h b/inet/netgroup.h index 90a8d450f7..aea52188d9 100644 --- a/inet/netgroup.h +++ b/inet/netgroup.h @@ -1,5 +1,5 @@ /* Internal header for netgroup related functions. - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 2004 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 @@ -24,8 +24,8 @@ track which netgroups were read and which still have to be read. */ struct name_list { - const char *name; struct name_list *next; + char name[0]; }; -- cgit v1.2.3