]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: listeners: Change listener_full and limit_listener into private functions
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 28 Aug 2017 13:29:20 +0000 (15:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Sep 2017 08:13:55 +0000 (10:13 +0200)
These functions are only used in listener_accept. So there is no need to export
them.

include/proto/listener.h
src/listener.c

index 770f266d1ce5523269d9cadcf152fa4d7db1eceb..09fcb819dce69f305d0f21737aaf8559de0c95f8 100644 (file)
@@ -53,11 +53,6 @@ int pause_listener(struct listener *l);
  */
 int resume_listener(struct listener *l);
 
-/* Marks a ready listener as full so that the session code tries to re-enable
- * it upon next close() using resume_listener().
- */
-void listener_full(struct listener *l);
-
 /* This function adds all of the protocol's listener's file descriptors to the
  * polling lists when they are in the LI_LISTEN state. It is intended to be
  * used as a protocol's generic enable_all() primitive, for use after the
@@ -73,11 +68,6 @@ int enable_all_listeners(struct protocol *proto);
  */
 int disable_all_listeners(struct protocol *proto);
 
-/* Marks a ready listener as limited so that we only try to re-enable it when
- * resources are free again. It will be queued into the specified queue.
- */
-void limit_listener(struct listener *l, struct list *list);
-
 /* Dequeues all of the listeners waiting for a resource in wait queue <queue>. */
 void dequeue_all_listeners(struct list *list);
 
index 69da2b77ff5a852414cc6fd0b0fdb30cf3167882..ef018f99ef762fa4f9c91095f0b97cc62f012544 100644 (file)
@@ -181,7 +181,7 @@ int resume_listener(struct listener *l)
 /* Marks a ready listener as full so that the stream code tries to re-enable
  * it upon next close() using resume_listener().
  */
-void listener_full(struct listener *l)
+static void listener_full(struct listener *l)
 {
        if (l->state >= LI_READY) {
                if (l->state == LI_LIMITED)
@@ -195,7 +195,7 @@ void listener_full(struct listener *l)
 /* Marks a ready listener as limited so that we only try to re-enable it when
  * resources are free again. It will be queued into the specified queue.
  */
-void limit_listener(struct listener *l, struct list *list)
+static void limit_listener(struct listener *l, struct list *list)
 {
        if (l->state == LI_READY) {
                LIST_ADDQ(list, &l->wait_queue);