diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-01-14 05:26:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-01-14 05:26:04 +0000 |
commit | b21fa963c4194082792a26023f265ebe50ca5c9e (patch) | |
tree | 78c2bb40d7a4fdb8b0b9c2c424fba511613e70e8 /nscd/nscd_conf.c | |
parent | 23691ab23b6e631ae0c5cf58455cca25a0058e22 (diff) | |
download | glibc-b21fa963c4194082792a26023f265ebe50ca5c9e.zip glibc-b21fa963c4194082792a26023f265ebe50ca5c9e.tar.gz glibc-b21fa963c4194082792a26023f265ebe50ca5c9e.tar.bz2 |
* nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
computation of keylen.
Diffstat (limited to 'nscd/nscd_conf.c')
-rw-r--r-- | nscd/nscd_conf.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nscd/nscd_conf.c b/nscd/nscd_conf.c index 2048eca..e724c6b 100644 --- a/nscd/nscd_conf.c +++ b/nscd/nscd_conf.c @@ -1,4 +1,4 @@ -/* Copyright (c) 1998,2000,2003,2004,2005,2006 Free Software Foundation, Inc. +/* Copyright (c) 1998, 2000, 2003-2006, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Thorsten Kukuk <kukuk@suse.de>, 1998. @@ -37,11 +37,12 @@ extern char *xstrdup (const char *s); /* Names of the databases. */ -const char *dbnames[lastdb] = +const char *const dbnames[lastdb] = { [pwddb] = "passwd", [grpdb] = "group", - [hstdb] = "hosts" + [hstdb] = "hosts", + [servdb] = "services" }; @@ -52,7 +53,7 @@ find_db (const char *name) if (strcmp (name, dbnames[cnt]) == 0) return cnt; - error (0, 0, _("database %s is not supported\n"), name); + error (0, 0, _("database %s is not supported"), name); return -1; } |