ITS#9112 Silence warnings

This commit is contained in:
Ondřej Kuzník 2020-04-15 16:04:08 +01:00 committed by Quanah Gibson-Mount
parent 8f01fdec36
commit 550476b5ad

View File

@ -1102,7 +1102,7 @@ int close( int s )
{ {
if (newconns) { if (newconns) {
Debug( LDAP_DEBUG_CONNS, Debug( LDAP_DEBUG_CONNS,
"daemon: close(%ld)\n", s ); "daemon: close(%d)\n", s );
if (s >= 0 && s < dtblsize && newconns[s]) if (s >= 0 && s < dtblsize && newconns[s])
assert(newconns[s] == 2); assert(newconns[s] == 2);
} }
@ -2122,7 +2122,7 @@ slap_listener(
SET_CLOSE(s); SET_CLOSE(s);
} }
Debug( LDAP_DEBUG_CONNS, Debug( LDAP_DEBUG_CONNS,
"daemon: accept() = %ld\n", s ); "daemon: accept() = %d\n", s );
/* Resume the listener FD to allow concurrent-processing of /* Resume the listener FD to allow concurrent-processing of
* additional incoming connections. * additional incoming connections.