e06446
From 2daf9be2b949b845ce18c355d862ac765a512ba7 Mon Sep 17 00:00:00 2001
e06446
From: Thierry Bordaz <tbordaz@redhat.com>
e06446
Date: Fri, 8 Jun 2018 14:34:28 +0200
e06446
Subject: [PATCH] Ticket 49765 - compiler warning
e06446
e06446
---
e06446
 ldap/servers/slapd/daemon.c | 6 +++---
e06446
 1 file changed, 3 insertions(+), 3 deletions(-)
e06446
e06446
diff --git a/ldap/servers/slapd/daemon.c b/ldap/servers/slapd/daemon.c
e06446
index 0a723c4a8..01db503dc 100644
e06446
--- a/ldap/servers/slapd/daemon.c
e06446
+++ b/ldap/servers/slapd/daemon.c
e06446
@@ -1778,7 +1778,7 @@ ns_connection_post_io_or_closing(Connection *conn)
e06446
             slapi_log_err(SLAPI_LOG_CONNS, "ns_connection_post_io_or_closing", "Already a close "
e06446
                                                                                "job in progress on conn %" PRIu64 " for fd=%d\n",
e06446
                           conn->c_connid, conn->c_sd);
e06446
-            return 0;
e06446
+            return;
e06446
         } else {
e06446
             conn->c_ns_close_jobs++;                                                      /* now 1 active closure job */
e06446
             connection_acquire_nolock_ext(conn, 1 /* allow acquire even when closing */); /* event framework now has a reference */
e06446
@@ -1822,7 +1822,7 @@ ns_connection_post_io_or_closing(Connection *conn)
e06446
              * The error occurs when we get a connection in a closing state.
e06446
              * For now we return, but there is probably a better way to handle the error case.
e06446
              */
e06446
-            return 0;
e06446
+            return;
e06446
         }
e06446
 #endif
e06446
         ns_result_t job_result = ns_add_io_timeout_job(conn->c_tp, conn->c_prfd, &tv,
e06446
@@ -1844,7 +1844,7 @@ ns_connection_post_io_or_closing(Connection *conn)
e06446
                           conn->c_connid, conn->c_sd);
e06446
         }
e06446
     }
e06446
-    return 0;
e06446
+    return;
e06446
 }
e06446
 
e06446
 /* This function must be called without the thread flag, in the
e06446
-- 
e06446
2.17.1
e06446