]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: listener: function comment typo in stop_listener()
authorAurelien DARRAGON <adarragon@haproxy.com>
Sun, 11 Sep 2022 14:19:49 +0000 (16:19 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Sep 2022 08:12:13 +0000 (10:12 +0200)
A minor typo related to stop_listener() function comment
was introduced in 0013288.

This makes stop_listener() function comment easier to read.

src/listener.c

index bddc29f40d018ee3356fedce7e39132cc92dc37b..b4b4d3d27a7875986f1c70ad65695fd1ac2549d2 100644 (file)
@@ -331,13 +331,13 @@ void enable_listener(struct listener *listener)
 }
 
 /*
- * 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)
 {