diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-12-20 19:00:19 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-12-20 19:00:19 +0000 |
commit | 3d50529df98624014a5d38099e88b364dbaba257 (patch) | |
tree | 51037189f0d60cab46e9fcc5dd1b383027c4b827 /nss/nsswitch.c | |
parent | cc2f0a2bb9d693cc44182f33f979e2628c99d75e (diff) | |
download | glibc-3d50529df98624014a5d38099e88b364dbaba257.tar.gz glibc-3d50529df98624014a5d38099e88b364dbaba257.tar.xz glibc-3d50529df98624014a5d38099e88b364dbaba257.zip |
* sunrpc/auth_none.c (ops): Mark as const.
* nss/nsswitch.c (databases): Mark as const. Change name field into array. * nss/databases.def: Add warning.
Diffstat (limited to 'nss/nsswitch.c')
-rw-r--r-- | nss/nsswitch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nss/nsswitch.c b/nss/nsswitch.c index 895b17825a..7e5e6e8164 100644 --- a/nss/nsswitch.c +++ b/nss/nsswitch.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004 +/* Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. @@ -59,9 +59,9 @@ static service_library *nss_new_service (name_database *database, #undef DEFINE_DATABASE /* Structure to map database name to variable. */ -static struct +static const struct { - const char *name; + const char name[10]; service_user **dbp; } databases[] = { |