From 9658112e104f7c31a3caaea3ce69c52d88cc40a1 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Fri, 26 Jun 2015 15:25:55 +1200 Subject: [PATCH] Fix ldap_bind compilation for i386 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit More size_t != uintmax_t issues: ../source4/libcli/ldap/ldap_bind.c: In function ‘ldap_bind_sasl’: ../source4/libcli/ldap/ldap_bind.c:237:3: error: format ‘%ju’ expects argument of type ‘uintmax_t’, but argument 2 has type ‘size_t’ [-Werror=format=] DEBUG(1, ("SASL bind triggered with non empty send_queue[%ju]: %s\n", ^ cc1: all warnings being treated as errors Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett Reviewed-by: Jeremy Allison --- source4/libcli/ldap/ldap_bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/libcli/ldap/ldap_bind.c b/source4/libcli/ldap/ldap_bind.c index daa766252de..0da49f3858f 100644 --- a/source4/libcli/ldap/ldap_bind.c +++ b/source4/libcli/ldap/ldap_bind.c @@ -234,7 +234,7 @@ _PUBLIC_ NTSTATUS ldap_bind_sasl(struct ldap_connection *conn, queue_length = tevent_queue_length(conn->sockets.send_queue); if (queue_length != 0) { status = NT_STATUS_INVALID_PARAMETER_MIX; - DEBUG(1, ("SASL bind triggered with non empty send_queue[%ju]: %s\n", + DEBUG(1, ("SASL bind triggered with non empty send_queue[%zu]: %s\n", queue_length, nt_errstr(status))); goto failed; } -- 2.11.4.GIT