ITS#7131 Fix connection loop connindex usage.

connection_<first/next>() takes a ber_socket_t *index, not int*.
This commit is contained in:
Hallvard Furuseth 2012-01-24 00:47:48 +01:00
parent 2b538761e9
commit db49dfecc9
3 changed files with 6 additions and 6 deletions

View file

@ -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 " );

View file

@ -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;

View file

@ -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;