Commit ed626e37 authored by Hallvard Furuseth's avatar Hallvard Furuseth Committed by Quanah Gibson-Mount
Browse files

ITS#7131 Fix connection loop connindex usage.

connection_<first/next>() takes a ber_socket_t *index, not int*.
parent 3c80e8e2
......@@ -223,7 +223,7 @@ monitor_subsys_conn_update(
} else if ( dn_match( &rdn, &current_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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment