[Openvpn-devel] [XS] Change in openvpn[master]: Fix format string specifier for size_t

"MaxF \(Code Review\) via Openvpn-devel" <[email protected]>
Newsgroups net.sourceforge.lists.openvpn-devel
Message-ID <[email protected]>
Attention is currently required from: plaisthos.

Hello plaisthos,

I'd like you to do a code review.
Please visit

    http://gerrit.openvpn.net/c/openvpn/+/1843?usp=email

to review the following change.


Change subject: Fix format string specifier for size_t
......................................................................

Fix format string specifier for size_t

size_t being the same as unsigned long is true on Linux, but this
produces a warning when cross-compiling for Windows. Replace %lu with
the correct format specifier %zu.

Change-Id: Id8524d9c36ea913d557d3f43f1f62acc4186b4eb
Signed-off-by: Max Fillinger <[email protected]>
---
M src/openvpn/pkcs11_mbedtls.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/43/1843/1

diff --git a/src/openvpn/pkcs11_mbedtls.c b/src/openvpn/pkcs11_mbedtls.c
index bf9d953..2183217 100644
--- a/src/openvpn/pkcs11_mbedtls.c
+++ b/src/openvpn/pkcs11_mbedtls.c
@@ -64,7 +64,7 @@
 
     if (cert_blob_size > max_cert_size)
     {
-        msg(M_WARN, "PKCS#11: Certificate too large: %lu bytes, maximum is %lu", cert_blob_size, max_cert_size);
+        msg(M_WARN, "PKCS#11: Certificate too large: %zu bytes, maximum is %zu", cert_blob_size, max_cert_size);
         goto cleanup;
     }
 

-- 
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1843?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id8524d9c36ea913d557d3f43f1f62acc4186b4eb
Gerrit-Change-Number: 1843
Gerrit-PatchSet: 1
Gerrit-Owner: MaxF <[email protected]>
Gerrit-Reviewer: plaisthos <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]>

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.