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

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