mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
Update.
* nscd/mem.c (gc): Add casts to avoid warnings.
This commit is contained in:
parent
404db64ae7
commit
568470bbff
@ -1,6 +1,7 @@
|
|||||||
2004-09-12 Ulrich Drepper <drepper@redhat.com>
|
2004-09-12 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* nscd/nscd-client.h: Fix database structure layout for biarch.
|
* nscd/nscd-client.h: Fix database structure layout for biarch.
|
||||||
|
* nscd/mem.c (gc): Add casts to avoid warnings.
|
||||||
|
|
||||||
* nss/getent.c: Don't preconstruct help message. Do it only when
|
* nss/getent.c: Don't preconstruct help message. Do it only when
|
||||||
needed.
|
needed.
|
||||||
|
11
nscd/mem.c
11
nscd/mem.c
@ -410,7 +410,7 @@ gc (struct database_dyn *db)
|
|||||||
dbg_log ("entry %zu in hash bucket %zu out of bounds: "
|
dbg_log ("entry %zu in hash bucket %zu out of bounds: "
|
||||||
"%" PRIu32 "+%zu > %zu\n",
|
"%" PRIu32 "+%zu > %zu\n",
|
||||||
cnt, idx, run, sizeof (struct hashentry),
|
cnt, idx, run, sizeof (struct hashentry),
|
||||||
db->head->first_free);
|
(size_t) db->head->first_free);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -419,14 +419,15 @@ gc (struct database_dyn *db)
|
|||||||
if (he->key + he->len > db->head->first_free)
|
if (he->key + he->len > db->head->first_free)
|
||||||
dbg_log ("key of entry %zu in hash bucket %zu out of "
|
dbg_log ("key of entry %zu in hash bucket %zu out of "
|
||||||
"bounds: %" PRIu32 "+%zu > %zu\n",
|
"bounds: %" PRIu32 "+%zu > %zu\n",
|
||||||
cnt, idx, he->key, he->len, db->head->first_free);
|
cnt, idx, he->key, (size_t) he->len,
|
||||||
|
(size_t) db->head->first_free);
|
||||||
|
|
||||||
if (he->packet + sizeof (struct datahead)
|
if (he->packet + sizeof (struct datahead)
|
||||||
> db->head->first_free)
|
> db->head->first_free)
|
||||||
dbg_log ("packet of entry %zu in hash bucket %zu out of "
|
dbg_log ("packet of entry %zu in hash bucket %zu out of "
|
||||||
"bounds: %" PRIu32 "+%zu > %zu\n",
|
"bounds: %" PRIu32 "+%zu > %zu\n",
|
||||||
cnt, idx, he->packet, sizeof (struct datahead),
|
cnt, idx, he->packet, sizeof (struct datahead),
|
||||||
db->head->first_free);
|
(size_t) db->head->first_free);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
struct datahead *dh = (struct datahead *) (db->data
|
struct datahead *dh = (struct datahead *) (db->data
|
||||||
@ -435,8 +436,8 @@ gc (struct database_dyn *db)
|
|||||||
> db->head->first_free)
|
> db->head->first_free)
|
||||||
dbg_log ("full key of entry %zu in hash bucket %zu "
|
dbg_log ("full key of entry %zu in hash bucket %zu "
|
||||||
"out of bounds: %" PRIu32 "+%zu > %zu",
|
"out of bounds: %" PRIu32 "+%zu > %zu",
|
||||||
cnt, idx, he->packet, dh->allocsize,
|
cnt, idx, he->packet, (size_t) dh->allocsize,
|
||||||
db->head->first_free);
|
(size_t) db->head->first_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
run = he->next;
|
run = he->next;
|
||||||
|
Loading…
Reference in New Issue
Block a user