aboutsummaryrefslogtreecommitdiff
path: root/inet/netgroup.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-08-13 20:26:29 +0000
committerUlrich Drepper <drepper@redhat.com>2004-08-13 20:26:29 +0000
commit2486480e23051b536fa2ac612b0613105ba988cf (patch)
treea04339514598f842fc616422e82ea71742ce9143 /inet/netgroup.h
parentb8b9340e6f26ef1b19c983fa481b75fd12c01d1b (diff)
downloadglibc-2486480e23051b536fa2ac612b0613105ba988cf.tar
glibc-2486480e23051b536fa2ac612b0613105ba988cf.tar.gz
glibc-2486480e23051b536fa2ac612b0613105ba988cf.tar.bz2
glibc-2486480e23051b536fa2ac612b0613105ba988cf.zip
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.
Diffstat (limited to 'inet/netgroup.h')
-rw-r--r--inet/netgroup.h4
1 files changed, 2 insertions, 2 deletions
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];
};