From afd830866ca4f393d5579fa4124eafd85062a133 Mon Sep 17 00:00:00 2001 From: Mark Reynolds Date: Jun 08 2018 23:16:29 +0000 Subject: Ticket 46918 - Fix compiler warnings on arm Description: There were still a few lingering compiler errors https://pagure.io/389-ds-base/issue/46918 Reviewed by: mreynolds(one line commit rule) --- diff --git a/ldap/servers/slapd/back-ldbm/cache.c b/ldap/servers/slapd/back-ldbm/cache.c index 827cd91..a27505c 100644 --- a/ldap/servers/slapd/back-ldbm/cache.c +++ b/ldap/servers/slapd/back-ldbm/cache.c @@ -731,10 +731,10 @@ cache_set_max_entries(struct cache *cache, int64_t entries) } } -size_t +uint64_t cache_get_max_size(struct cache *cache) { - size_t n = 0; + uint64_t n = 0; cache_lock(cache); n = cache->c_maxsize; diff --git a/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h b/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h index 793150b..6d772cd 100644 --- a/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h +++ b/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h @@ -36,9 +36,9 @@ int cache_init(struct cache *cache, uint64_t maxsize, int64_t maxentries, int ty void cache_clear(struct cache *cache, int type); void cache_destroy_please(struct cache *cache, int type); void cache_set_max_size(struct cache *cache, uint64_t bytes, int type); -void cache_set_max_entries(struct cache *cache, long entries); -size_t cache_get_max_size(struct cache *cache); -long cache_get_max_entries(struct cache *cache); +void cache_set_max_entries(struct cache *cache, int64_t entries); +uint64_t cache_get_max_size(struct cache *cache); +int64_t cache_get_max_entries(struct cache *cache); void cache_get_stats(struct cache *cache, uint64_t *hits, uint64_t *tries, uint64_t *entries, int64_t *maxentries, uint64_t *size, uint64_t *maxsize); void cache_debug_hash(struct cache *cache, char **out); int cache_remove(struct cache *cache, void *e);