mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-06 12:01:08 +03:00
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.
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
2003-01-15 Ulrich Drepper <drepper@redhat.com>
|
2003-01-15 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
* iconv/gconv_simple.c (STORE_REST): Explicitly store the total
|
* iconv/gconv_simple.c (STORE_REST): Explicitly store the total
|
||||||
expected size into state.
|
expected size into state.
|
||||||
(UNPACK_BYTES): Do the reverse.
|
(UNPACK_BYTES): Do the reverse.
|
||||||
|
|||||||
@@ -171,7 +171,10 @@ nscd_init (const char *conffile)
|
|||||||
dbs[cnt].array = (struct hashentry **)
|
dbs[cnt].array = (struct hashentry **)
|
||||||
calloc (dbs[cnt].module, sizeof (struct hashentry *));
|
calloc (dbs[cnt].module, sizeof (struct hashentry *));
|
||||||
if (dbs[cnt].array == NULL)
|
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)
|
if (dbs[cnt].check_file)
|
||||||
{
|
{
|
||||||
@@ -180,11 +183,9 @@ nscd_init (const char *conffile)
|
|||||||
|
|
||||||
if (stat (dbs[cnt].filename, &st) < 0)
|
if (stat (dbs[cnt].filename, &st) < 0)
|
||||||
{
|
{
|
||||||
char buf[128];
|
|
||||||
/* We cannot stat() the file, disable file checking. */
|
/* We cannot stat() the file, disable file checking. */
|
||||||
dbg_log (_("cannot stat() file `%s': %s"),
|
dbg_log (_("cannot stat() file `%s': %s"),
|
||||||
dbs[cnt].filename,
|
dbs[cnt].filename, strerror (errno));
|
||||||
strerror_r (errno, buf, sizeof (buf)));
|
|
||||||
dbs[cnt].check_file = 0;
|
dbs[cnt].check_file = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -548,8 +549,6 @@ nscd_run (void *p)
|
|||||||
timeout = now < next_prune ? 1000 * (next_prune - now) : 0;
|
timeout = now < next_prune ? 1000 * (next_prune - now) : 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Shut up bogus GCC warning. */
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user