diff --git a/include/proto/listener.h b/include/proto/listener.h index 770f266d1..09fcb819d 100644 --- a/include/proto/listener.h +++ b/include/proto/listener.h @@ -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 . */ void dequeue_all_listeners(struct list *list); diff --git a/src/listener.c b/src/listener.c index 69da2b77f..ef018f99e 100644 --- a/src/listener.c +++ b/src/listener.c @@ -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);