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
ingo Voss
OpenLDAP
Commits
af3a65b9
Commit
af3a65b9
authored
Mar 30, 2002
by
Pierangelo Masarati
Browse files
do not print -1 as %lu
parent
031991e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/connection.c
View file @
af3a65b9
...
...
@@ -625,6 +625,7 @@ connection_destroy( Connection *c )
{
/* note: connections_mutex should be locked by caller */
ber_socket_t
sd
;
unsigned
long
connid
;
assert
(
connections
!=
NULL
);
assert
(
c
!=
NULL
);
...
...
@@ -632,6 +633,9 @@ connection_destroy( Connection *c )
assert
(
c
->
c_conn_state
!=
SLAP_C_INVALID
);
assert
(
LDAP_STAILQ_EMPTY
(
&
c
->
c_ops
)
);
/* only for stats (print -1 as "%lu" may give unexpected results ;) */
connid
=
c
->
c_connid
;
backend_connection_destroy
(
c
);
c
->
c_protocol
=
0
;
...
...
@@ -699,7 +703,7 @@ connection_destroy( Connection *c )
Statslog
(
LDAP_DEBUG_STATS
,
"conn=%lu fd=%d closed
\n
"
,
c
->
c_
connid
,
sd
,
0
,
0
,
0
);
connid
,
sd
,
0
,
0
,
0
);
}
ber_sockbuf_free
(
c
->
c_sb
);
...
...
Write
Preview
Markdown
is supported
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