From 92bb3462dfbdb4568c92be19e8904129a17b1eed Mon Sep 17 00:00:00 2001 From: William Smith Date: Wed, 10 Apr 2013 21:06:12 -0400 Subject: [PATCH] ssl_tls: fix format warning in ssl_parse_certificate() on x86_64 Fix warning "format '%d' expects type 'int', but argument 2 has type 'long unsigned int'" in ssl_parse_certificate() on x86_64. --- library/ssl_tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 6af7e45..254ae80 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -1238,8 +1238,8 @@ int ssl_parse_certificate(ssl_context * ssl) } if ((ssl->peer_cert = (x509_cert *) malloc(sizeof(x509_cert))) == NULL) { - SSL_DEBUG_MSG(1, ("malloc(%d bytes) failed", - sizeof(x509_cert))); + SSL_DEBUG_MSG(1, ("malloc(%lu bytes) failed", + (unsigned long)sizeof(x509_cert))); return (1); } -- 2.11.4.GIT