Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tero Saarni
OpenLDAP
Commits
ed626e37
Commit
ed626e37
authored
Jan 24, 2012
by
Hallvard Furuseth
Committed by
Quanah Gibson-Mount
Jan 23, 2012
Browse files
ITS#7131 Fix connection loop connindex usage.
connection_<first/next>() takes a ber_socket_t *index, not int*.
parent
3c80e8e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-monitor/conn.c
View file @
ed626e37
...
...
@@ -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 "
);
...
...
servers/slapd/back-monitor/rww.c
View file @
ed626e37
...
...
@@ -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
;
...
...
servers/slapd/connection.c
View file @
ed626e37
...
...
@@ -209,7 +209,7 @@ int connections_shutdown(void)
int
connections_timeout_idle
(
time_t
now
)
{
int
i
=
0
,
writers
=
0
;
in
t
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
;
in
t
connindex
;
ber_socket_
t
connindex
;
for
(
c
=
connection_first
(
&
connindex
);
c
!=
NULL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment