summaryrefslogtreecommitdiff
path: root/nss/nsswitch.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-02-18 22:27:04 +0000
committerUlrich Drepper <drepper@redhat.com>1999-02-18 22:27:04 +0000
commit1a989e004c00955e60cd315666ebd450d6fa9732 (patch)
tree3b37d414798b7547f6a0e1f51ff3c3e60d812eb6 /nss/nsswitch.h
parented3b44d39c69748d586f66179c19dbc2f2d7c808 (diff)
downloadglibc-1a989e004c00955e60cd315666ebd450d6fa9732.tar.gz
Update.
* nss/nsswitch.h (service_user): Change name field from const char * to char[0]. (name_database_entry): Likewise. * nss/nsswitch.c (nss_parse_service_list): Adjust memory allocation for change of `service_user'. (nss_getline): Adjust memory allocation for change of `name_database_entry'.
Diffstat (limited to 'nss/nsswitch.h')
-rw-r--r--nss/nsswitch.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/nss/nsswitch.h b/nss/nsswitch.h
index ecb2b1bde2..9f40a9e46f 100644
--- a/nss/nsswitch.h
+++ b/nss/nsswitch.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 1999 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
@@ -60,16 +60,16 @@ typedef struct
typedef struct service_user
{
- /* Name of the service (`files', `dns', `nis', ...). */
- const char *name;
+ /* And the link to the next entry. */
+ struct service_user *next;
/* Action according to result. */
lookup_actions actions[5];
/* Link to the underlying library object. */
service_library *library;
/* Collection of known functions. */
struct entry *known;
- /* And the link to the next entry. */
- struct service_user *next;
+ /* Name of the service (`files', `dns', `nis', ...). */
+ char name[0];
} service_user;
/* To access the action based on the status value use this macro. */
@@ -78,12 +78,12 @@ typedef struct service_user
typedef struct name_database_entry
{
- /* Name of the database. */
- const char *name;
- /* List of service to be used. */
- service_user *service;
/* And the link to the next entry. */
struct name_database_entry *next;
+ /* List of service to be used. */
+ service_user *service;
+ /* Name of the database. */
+ char name[0];
} name_database_entry;