aboutsummaryrefslogtreecommitdiff
path: root/nscd
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-13 05:56:39 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-13 05:56:39 +0000
commit568470bbff2c86996cbb7ebb5411a2b5d4c46fe4 (patch)
tree4b3fa07d9188a7e8d0d6284bcab5c1bcfe020a13 /nscd
parent404db64ae7d5572b916388b749c289574efdb3a8 (diff)
downloadglibc-568470bbff2c86996cbb7ebb5411a2b5d4c46fe4.tar
glibc-568470bbff2c86996cbb7ebb5411a2b5d4c46fe4.tar.gz
glibc-568470bbff2c86996cbb7ebb5411a2b5d4c46fe4.tar.bz2
glibc-568470bbff2c86996cbb7ebb5411a2b5d4c46fe4.zip
Update.
* nscd/mem.c (gc): Add casts to avoid warnings.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/mem.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/nscd/mem.c b/nscd/mem.c
index 5207efc2de..c3a0f96702 100644
--- a/nscd/mem.c
+++ b/nscd/mem.c
@@ -410,7 +410,7 @@ gc (struct database_dyn *db)
dbg_log ("entry %zu in hash bucket %zu out of bounds: "
"%" PRIu32 "+%zu > %zu\n",
cnt, idx, run, sizeof (struct hashentry),
- db->head->first_free);
+ (size_t) db->head->first_free);
break;
}
@@ -419,14 +419,15 @@ gc (struct database_dyn *db)
if (he->key + he->len > db->head->first_free)
dbg_log ("key of entry %zu in hash bucket %zu out of "
"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)
> db->head->first_free)
dbg_log ("packet of entry %zu in hash bucket %zu out of "
"bounds: %" PRIu32 "+%zu > %zu\n",
cnt, idx, he->packet, sizeof (struct datahead),
- db->head->first_free);
+ (size_t) db->head->first_free);
else
{
struct datahead *dh = (struct datahead *) (db->data
@@ -435,8 +436,8 @@ gc (struct database_dyn *db)
> db->head->first_free)
dbg_log ("full key of entry %zu in hash bucket %zu "
"out of bounds: %" PRIu32 "+%zu > %zu",
- cnt, idx, he->packet, dh->allocsize,
- db->head->first_free);
+ cnt, idx, he->packet, (size_t) dh->allocsize,
+ (size_t) db->head->first_free);
}
run = he->next;