summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c2
-rw-r--r--src/tests/gss-threads/gss-misc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c b/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
index 6874f4703..e6aa03525 100644
--- a/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
+++ b/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c
@@ -277,7 +277,7 @@ __big_keydata(hashp, pagep, key, val, ndx)
key->data = hashp->bigkey_buf;
__put_page(hashp, key_pagep, A_RAW, 0);
- if (key->size == -1)
+ if (key->size == (size_t)-1)
return (-1);
/* Create an item_info to direct __big_return to the beginning pgno. */
diff --git a/src/tests/gss-threads/gss-misc.c b/src/tests/gss-threads/gss-misc.c
index e52ae288e..4fdbde31c 100644
--- a/src/tests/gss-threads/gss-misc.c
+++ b/src/tests/gss-threads/gss-misc.c
@@ -386,7 +386,7 @@ void display_ctx_flags(flags)
void print_token(tok)
gss_buffer_t tok;
{
- int i;
+ size_t i;
unsigned char *p = tok->value;
if (!display_file)