Saturday, June 9, 2018

[389-commits] [389-ds-base] 01/02: Ticket 46918 - Fix compiler warnings on arm

This is an automated email from the git hooks/post-receive script.

mreynolds pushed a commit to branch master
in repository 389-ds-base.

commit afd830866ca4f393d5579fa4124eafd85062a133
Author: Mark Reynolds <mreynolds@redhat.com>
Date: Fri Jun 8 19:16:29 2018 -0400

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)
---
ldap/servers/slapd/back-ldbm/cache.c | 4 ++--
ldap/servers/slapd/back-ldbm/proto-back-ldbm.h | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)

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);

--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
389-commits mailing list -- 389-commits@lists.fedoraproject.org
To unsubscribe send an email to 389-commits-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-commits@lists.fedoraproject.org/message/6I4HMPHMH2AAA25XGLDRD553EOOAXOUN/

No comments:

Post a Comment