aboutsummaryrefslogtreecommitdiff
path: root/nscd
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-01-16 07:54:50 +0000
committerUlrich Drepper <drepper@redhat.com>2003-01-16 07:54:50 +0000
commite09edf23c2b9cadb988c5cdb69adf70eb418c907 (patch)
treecf4f048a916f17b1eef9898c193f87e1cb3c5bf4 /nscd
parent41f112ad228d4cd587712b747472a3a9f7e20e5a (diff)
downloadglibc-e09edf23c2b9cadb988c5cdb69adf70eb418c907.tar
glibc-e09edf23c2b9cadb988c5cdb69adf70eb418c907.tar.gz
glibc-e09edf23c2b9cadb988c5cdb69adf70eb418c907.tar.bz2
glibc-e09edf23c2b9cadb988c5cdb69adf70eb418c907.zip
Update.
* nscd/connections.c (nscd_run): Remove bogus return which isn't necessary with gcc 3.2+. (nscd_init): Don't use error() to print message, use dbg_log.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/connections.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index d85af4d561..dd0b2306a4 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -171,7 +171,10 @@ nscd_init (const char *conffile)
dbs[cnt].array = (struct hashentry **)
calloc (dbs[cnt].module, sizeof (struct hashentry *));
if (dbs[cnt].array == NULL)
- error (EXIT_FAILURE, errno, "while allocating cache");
+ {
+ dbg_log (_("while allocating cache: %s"), strerror (errno));
+ exit (1);
+ }
if (dbs[cnt].check_file)
{
@@ -180,11 +183,9 @@ nscd_init (const char *conffile)
if (stat (dbs[cnt].filename, &st) < 0)
{
- char buf[128];
/* We cannot stat() the file, disable file checking. */
dbg_log (_("cannot stat() file `%s': %s"),
- dbs[cnt].filename,
- strerror_r (errno, buf, sizeof (buf)));
+ dbs[cnt].filename, strerror (errno));
dbs[cnt].check_file = 0;
}
else
@@ -548,8 +549,6 @@ nscd_run (void *p)
timeout = now < next_prune ? 1000 * (next_prune - now) : 0;
}
}
- /* Shut up bogus GCC warning. */
- return NULL;
}