# HG changeset patch # User William Ehlhardt # Date 1180472408 0 # Node ID 53bd10a833220262f69860a43ea3468596ed51b3 # Parent e0eb1eb5b47bce008056c6dbfec357d2f884690a - Eliminate some warnings diff -r e0eb1eb5b47b -r 53bd10a83322 libpurple/plugins/ssl/ssl-gnutls.c --- a/libpurple/plugins/ssl/ssl-gnutls.c Tue May 29 20:50:06 2007 +0000 +++ b/libpurple/plugins/ssl/ssl-gnutls.c Tue May 29 21:00:08 2007 +0000 @@ -137,10 +137,10 @@ else { /* Grab the first certificate and display some data about it */ - gchar fpr_bin[256]; /* Raw binary key fingerprint */ + guchar fpr_bin[256]; /* Raw binary key fingerprint */ gsize fpr_bin_sz = sizeof(fpr_bin); /* Size of above (used later) */ gchar * fpr_asc = NULL; /* ASCII representation of key fingerprint */ - gchar ser_bin[256]; /* Certificate Serial Number field */ + guchar ser_bin[256]; /* Certificate Serial Number field */ gsize ser_bin_sz = sizeof(ser_bin); gchar * ser_asc = NULL; gchar dn[1024]; /* Certificate Name field */ @@ -215,7 +215,7 @@ g_free(primary); g_free(secondary); - } + } /* End dialog construction */ /* Cleanup! */ @@ -223,7 +223,7 @@ g_free(ser_asc); gnutls_x509_crt_deinit(cert); - } + } /* if (0 == ... */ } static void ssl_gnutls_handshake_cb(gpointer data, gint source, @@ -259,6 +259,7 @@ const gnutls_datum_t *cert_list; unsigned int cert_list_size = 0; gnutls_session_t session=gnutls_data->session; + int i; cert_list = gnutls_certificate_get_peers(session, &cert_list_size); @@ -266,16 +267,17 @@ purple_debug_info("gnutls", "Peer provided %d certs\n", cert_list_size); - int i; + for (i=0; i