mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
fix warnings on 32 bit builds
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
This commit is contained in:
parent
03ed5e9906
commit
e314c34073
@ -317,7 +317,11 @@ typedef unsigned __int64 uint64_t;
|
|||||||
* isn't available or did not define it, just go with hard-coded.
|
* isn't available or did not define it, just go with hard-coded.
|
||||||
*/
|
*/
|
||||||
# ifndef PRIu64
|
# ifndef PRIu64
|
||||||
# define PRIu64 "lu"
|
# ifdef SIXTY_FOUR_BIT_LONG
|
||||||
|
# define PRIu64 "lu"
|
||||||
|
# else
|
||||||
|
# define PRIu64 "llu"
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
/* ossl_inline: portable inline definition usable in public headers */
|
/* ossl_inline: portable inline definition usable in public headers */
|
||||||
|
@ -377,7 +377,7 @@ int main(void)
|
|||||||
char *data;
|
char *data;
|
||||||
long datalen;
|
long datalen;
|
||||||
int ret, success = 0;
|
int ret, success = 0;
|
||||||
size_t i;
|
long i;
|
||||||
|
|
||||||
ctx = SSL_CTX_new(DTLS_server_method());
|
ctx = SSL_CTX_new(DTLS_server_method());
|
||||||
if (ctx == NULL || peer == NULL)
|
if (ctx == NULL || peer == NULL)
|
||||||
@ -397,7 +397,7 @@ int main(void)
|
|||||||
SSL_set_wbio(ssl, outbio);
|
SSL_set_wbio(ssl, outbio);
|
||||||
|
|
||||||
success = 1;
|
success = 1;
|
||||||
for (i = 0; i < OSSL_NELEM(testpackets) && success; i++) {
|
for (i = 0; i < (long)OSSL_NELEM(testpackets) && success; i++) {
|
||||||
inbio = BIO_new_mem_buf((char *)testpackets[i].in,
|
inbio = BIO_new_mem_buf((char *)testpackets[i].in,
|
||||||
testpackets[i].inlen);
|
testpackets[i].inlen);
|
||||||
if (inbio == NULL) {
|
if (inbio == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user