From: Hallvard Furuseth Date: Mon, 5 Aug 2013 08:01:39 +0000 (+0200) Subject: Silence warnings X-Git-Tag: OPENLDAP_REL_ENG_2_4_36~12^2~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=74ed1757a4fb9263e1a78adc7b60360531824e0a;p=openldap Silence warnings --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index b37d113fd4..4b977038b2 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -2999,7 +2999,7 @@ mdb_env_init_meta(MDB_env *env, MDB_meta *meta) DO_PWRITE(rc, env->me_fd, p, psize * 2, len, 0); if (!rc) rc = ErrCode(); - else if (len == psize * 2) + else if ((unsigned) len == psize * 2) rc = MDB_SUCCESS; else rc = ENOSPC; @@ -3560,7 +3560,7 @@ mdb_hash_val(MDB_val *val, mdb_hash_t hval) * @param[in] str string to hash * @param[out] encbuf an array of 11 chars to hold the hash */ -const static char mdb_a85[]= "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"; +static const char mdb_a85[]= "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"; static void mdb_pack85(unsigned long l, char *out)