mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 12:39:35 -05:00
ITS#8747 Remove c_private from LloadConnection
This commit is contained in:
parent
1cb65102ce
commit
8e4d7ffe79
4 changed files with 2 additions and 8 deletions
|
|
@ -391,7 +391,6 @@ fail:
|
|||
LloadConnection *
|
||||
client_init(
|
||||
ber_socket_t s,
|
||||
LloadListener *listener,
|
||||
const char *peername,
|
||||
struct event_base *base,
|
||||
int flags )
|
||||
|
|
@ -401,8 +400,6 @@ client_init(
|
|||
event_callback_fn read_cb = connection_read_cb,
|
||||
write_cb = connection_write_cb;
|
||||
|
||||
assert( listener != NULL );
|
||||
|
||||
if ( (c = lload_connection_init( s, peername, flags) ) == NULL ) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
@ -456,7 +453,6 @@ client_init(
|
|||
}
|
||||
c->c_write_event = event;
|
||||
|
||||
c->c_private = listener;
|
||||
c->c_destroy = client_destroy;
|
||||
c->c_unlink = client_unlink;
|
||||
c->c_pdu_cb = handle_one_request;
|
||||
|
|
|
|||
|
|
@ -931,7 +931,7 @@ lload_listener(
|
|||
#ifdef HAVE_TLS
|
||||
if ( sl->sl_is_tls ) cflag |= CONN_IS_TLS;
|
||||
#endif
|
||||
c = client_init( s, sl, peername, lload_daemon[tid].base, cflag );
|
||||
c = client_init( s, peername, lload_daemon[tid].base, cflag );
|
||||
|
||||
if ( !c ) {
|
||||
Debug( LDAP_DEBUG_ANY, "lload_listener: "
|
||||
|
|
|
|||
|
|
@ -410,8 +410,6 @@ struct LloadConnection {
|
|||
* - Upstream: b->b_mutex
|
||||
*/
|
||||
LDAP_CIRCLEQ_ENTRY(LloadConnection) c_next;
|
||||
|
||||
void *c_private;
|
||||
};
|
||||
|
||||
enum op_state {
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ LDAP_SLAPD_F (int) request_abandon( LloadConnection *c, LloadOperation *op );
|
|||
LDAP_SLAPD_F (int) request_process( LloadConnection *c, LloadOperation *op );
|
||||
LDAP_SLAPD_F (int) handle_one_request( LloadConnection *c );
|
||||
LDAP_SLAPD_F (void) client_tls_handshake_cb( evutil_socket_t s, short what, void *arg );
|
||||
LDAP_SLAPD_F (LloadConnection *) client_init( ber_socket_t s, LloadListener *url, const char *peername, struct event_base *base, int use_tls );
|
||||
LDAP_SLAPD_F (LloadConnection *) client_init( ber_socket_t s, const char *peername, struct event_base *base, int use_tls );
|
||||
LDAP_SLAPD_F (void) client_reset( LloadConnection *c );
|
||||
LDAP_SLAPD_F (void) client_destroy( LloadConnection *c );
|
||||
LDAP_SLAPD_F (void) clients_destroy( int gentle );
|
||||
|
|
|
|||
Loading…
Reference in a new issue