zrhoffman / rpms / 389-ds-base

Forked from rpms/389-ds-base 3 years ago
Clone

Blame SOURCES/0037-Ticket-48118-fix-compiler-warning-for-incorrect-retu.patch

b045b9
From fd06b282ffd06a5b3807c0396bff442f0c7568b1 Mon Sep 17 00:00:00 2001
b045b9
From: Ludwig Krispenz <lkrispen@redhat.com>
b045b9
Date: Wed, 15 Nov 2017 13:17:00 +0100
b045b9
Subject: [PATCH] Ticket 48118 - fix compiler warning for incorrect return type
b045b9
b045b9
---
b045b9
 ldap/servers/plugins/replication/cl5_api.c | 8 ++++----
b045b9
 1 file changed, 4 insertions(+), 4 deletions(-)
b045b9
b045b9
diff --git a/ldap/servers/plugins/replication/cl5_api.c b/ldap/servers/plugins/replication/cl5_api.c
b045b9
index 55032dfb0..721013abf 100644
b045b9
--- a/ldap/servers/plugins/replication/cl5_api.c
b045b9
+++ b/ldap/servers/plugins/replication/cl5_api.c
b045b9
@@ -250,8 +250,8 @@ static void _cl5ReadBerval(struct berval *bv, char **buff);
b045b9
 static void _cl5WriteBerval(struct berval *bv, char **buff);
b045b9
 static int _cl5ReadBervals(struct berval ***bv, char **buff, unsigned int size);
b045b9
 static int _cl5WriteBervals(struct berval **bv, char **buff, u_int32_t *size);
b045b9
-static int64_t _cl5CheckMaxRUV(CL5DBFile *file, RUV *maxruv);
b045b9
-static int64_t _cl5CheckCSNinCL(const ruv_enum_data *element, void *arg);
b045b9
+static int32_t _cl5CheckMaxRUV(CL5DBFile *file, RUV *maxruv);
b045b9
+static int32_t _cl5CheckCSNinCL(const ruv_enum_data *element, void *arg);
b045b9
 
b045b9
 /* replay iteration */
b045b9
 #ifdef FOR_DEBUGGING
b045b9
@@ -2718,7 +2718,7 @@ _cl5WriteBervals(struct berval **bv, char **buff, u_int32_t *size)
b045b9
     return CL5_SUCCESS;
b045b9
 }
b045b9
 
b045b9
-static int64_t
b045b9
+static int32_t
b045b9
 _cl5CheckCSNinCL(const ruv_enum_data *element, void *arg)
b045b9
 {
b045b9
     CL5DBFile *file = (CL5DBFile *)arg;
b045b9
@@ -2739,7 +2739,7 @@ _cl5CheckCSNinCL(const ruv_enum_data *element, void *arg)
b045b9
     return rc;
b045b9
 }
b045b9
 
b045b9
-static int64_t
b045b9
+static int32_t
b045b9
 _cl5CheckMaxRUV(CL5DBFile *file, RUV *maxruv)
b045b9
 {
b045b9
     int rc = 0;
b045b9
-- 
b045b9
2.13.6
b045b9