From ef01fb39db399574d1d3c794f9f6782a711303ad Mon Sep 17 00:00:00 2001 From: Gabriel VLASIU Date: Thu, 4 Apr 2013 13:57:28 +0300 Subject: [PATCH] wmbiff: More gnutls casts. --- wmbiff/wmbiff/gnutls-common.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wmbiff/wmbiff/gnutls-common.c b/wmbiff/wmbiff/gnutls-common.c index d199d47..db6bd17 100644 --- a/wmbiff/wmbiff/gnutls-common.c +++ b/wmbiff/wmbiff/gnutls-common.c @@ -39,7 +39,8 @@ void print_x509_info(gnutls_session session, const char* hostname) { gnutls_x509_crt crt; const gnutls_datum *cert_list; - unsigned int cert_list_size = 0, ret; + unsigned int cert_list_size = 0; + int ret; char digest[20]; char serial[40]; char dn[256]; @@ -63,7 +64,7 @@ void print_x509_info(gnutls_session session, const char* hostname) printf(" - Got a certificate list of %d certificates.\n\n", cert_list_size); - for (j = 0; j < (unsigned int)cert_list_size; j++) { + for (j = 0; j < cert_list_size; j++) { gnutls_x509_crt_init(&crt); ret = @@ -213,7 +214,7 @@ void print_openpgp_info(gnutls_session session, const char* hostname) size_t name_len = sizeof(name); gnutls_openpgp_key crt; const gnutls_datum *cert_list; - int cert_list_size = 0; + unsigned int cert_list_size = 0; time_t expiret; time_t activet;