amoralej / rpms / 389-ds-base

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

Blame SOURCES/0092-Ticket-49765-compiler-warning.patch

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