MINOR: connection: make the last arg of subscribe() a struct wait_event*
authorWilly Tarreau <w@1wt.eu>
Fri, 17 Jan 2020 06:52:13 +0000 (07:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 Jan 2020 17:30:37 +0000 (18:30 +0100)
commitee1a6fc943ae8e3e9f79ab5d3d775062d1bf9a47
tree01829bfcca77a8c5b4e7b5bd56cb0d8baf9464a0
parent8907e4ddb876b638c6c990015211b5727fe63556
MINOR: connection: make the last arg of subscribe() a struct wait_event*

The subscriber used to be passed as a "void *param" that was systematically
cast to a struct wait_event*. By now it appears clear that the subscribe()
call at every layer is well defined and always takes a pointer to an event
subscriber of type wait_event, so let's enforce this in the functions'
prototypes, remove the intermediary variables used to cast it and clean up
the comments to clarify what all these functions do in their context.
include/proto/connection.h
include/types/connection.h
src/connection.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/raw_sock.c
src/ssl_sock.c
src/xprt_handshake.c