mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 19:19:35 -05:00
ITS#7131 Fix connection loop connindex usage.
connection_<first/next>() takes a ber_socket_t *index, not int*.
This commit is contained in:
parent
2b538761e9
commit
db49dfecc9
3 changed files with 6 additions and 6 deletions
|
|
@ -223,7 +223,7 @@ monitor_subsys_conn_update(
|
|||
|
||||
} else if ( dn_match( &rdn, ¤t_bv ) ) {
|
||||
Connection *c;
|
||||
int connindex;
|
||||
ber_socket_t connindex;
|
||||
|
||||
for ( n = 0, c = connection_first( &connindex );
|
||||
c != NULL;
|
||||
|
|
@ -445,7 +445,7 @@ monitor_subsys_conn_create(
|
|||
|
||||
if ( ndn == NULL ) {
|
||||
Connection *c;
|
||||
int connindex;
|
||||
ber_socket_t connindex;
|
||||
Entry *e = NULL,
|
||||
*e_tmp = NULL;
|
||||
|
||||
|
|
@ -481,7 +481,7 @@ monitor_subsys_conn_create(
|
|||
|
||||
} else {
|
||||
Connection *c;
|
||||
int connindex;
|
||||
ber_socket_t connindex;
|
||||
unsigned long connid;
|
||||
char *next = NULL;
|
||||
static struct berval nconn_bv = BER_BVC( "cn=connection " );
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ monitor_subsys_rww_update(
|
|||
{
|
||||
monitor_info_t *mi = (monitor_info_t *)op->o_bd->be_private;
|
||||
Connection *c;
|
||||
int connindex;
|
||||
ber_socket_t connindex;
|
||||
long nconns, nwritewaiters, nreadwaiters;
|
||||
|
||||
int i;
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ int connections_shutdown(void)
|
|||
int connections_timeout_idle(time_t now)
|
||||
{
|
||||
int i = 0, writers = 0;
|
||||
int connindex;
|
||||
ber_socket_t connindex;
|
||||
Connection* c;
|
||||
time_t old;
|
||||
|
||||
|
|
@ -258,7 +258,7 @@ int connections_timeout_idle(time_t now)
|
|||
void connections_drop()
|
||||
{
|
||||
Connection* c;
|
||||
int connindex;
|
||||
ber_socket_t connindex;
|
||||
|
||||
for( c = connection_first( &connindex );
|
||||
c != NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue