andykimpe / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 months ago
Clone

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

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