summaryrefslogtreecommitdiff
path: root/lib/libc/db
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-03 19:56:48 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-03 19:56:48 +0000
commitf82cd0b9988204a88ed8811cc6f06e98f97180a0 (patch)
tree34e3a650b3c35030fb2798ce77329ef25787eec4 /lib/libc/db
parent8f584324c1fc27e7aba73120215c9630a059fc16 (diff)
a few size_t casts are needed here; ok otto
Diffstat (limited to 'lib/libc/db')
-rw-r--r--lib/libc/db/hash/hash_bigkey.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/db/hash/hash_bigkey.c b/lib/libc/db/hash/hash_bigkey.c
index 4443ac9e0ed..01115b1b53a 100644
--- a/lib/libc/db/hash/hash_bigkey.c
+++ b/lib/libc/db/hash/hash_bigkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hash_bigkey.c,v 1.16 2005/08/05 13:03:00 espie Exp $ */
+/* $OpenBSD: hash_bigkey.c,v 1.17 2006/04/03 19:56:47 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -420,7 +420,7 @@ __big_return(HTAB *hashp, BUFHEAD *bufp, int ndx, DBT *val, int set_current)
return (0);
}
- val->size = collect_data(hashp, bufp, (int)len, set_current);
+ val->size = (size_t)collect_data(hashp, bufp, (int)len, set_current);
if (val->size == (size_t)-1)
return (-1);
if (save_p->addr != save_addr) {
@@ -492,7 +492,7 @@ collect_data(HTAB *hashp, BUFHEAD *bufp, int len, int set)
int
__big_keydata(HTAB *hashp, BUFHEAD *bufp, DBT *key, DBT *val, int set)
{
- key->size = collect_key(hashp, bufp, 0, val, set);
+ key->size = (size_t)collect_key(hashp, bufp, 0, val, set);
if (key->size == (size_t)-1)
return (-1);
key->data = (u_char *)hashp->tmp_key;