CLEANUP: listener: function comment typo in stop_listener()
A minor typo related to stop_listener() function comment
was introduced in 0013288.
This makes stop_listener() function comment easier to read.
(cherry picked from commit 187396e34ed1ab28e73ebcd678fbe7acc32eaad4)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit c0f8d3477da9d3fd83061955f3b0fdd4da6b3b9b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit b8cc0315ca12bb1dbbf20c78bfb5e971133cb636)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
diff --git a/src/listener.c b/src/listener.c
index 67616f5..dc9aecb 100644
--- a/src/listener.c
+++ b/src/listener.c
@@ -297,13 +297,13 @@
}
/*
- * This function completely stops a listener. It will need to operate under the
+ * This function completely stops a listener.
+ * The proxy's listeners count is updated and the proxy is
+ * disabled and woken up after the last one is gone.
* It will need to operate under the proxy's lock and the protocol's lock.
* The caller is responsible for indicating in lpx, lpr whether the
* respective locks are already held (non-zero) or not (zero) so that the
* function picks the missing ones, in this order.
- * The proxy's listeners count is updated and the proxy is
- * disabled and woken up after the last one is gone.
*/
void stop_listener(struct listener *l, int lpx, int lpr)
{