<<< Date Index >>>     <<< Thread Index >>>

[PATCH 2 of 9] Fix comparison signedness warnings



# HG changeset patch
# User Matthias Andree <matthias.andree@xxxxxx>
# Date 1281124305 -7200
# Branch HEAD
# Node ID 38a8fa1d1b69727de8b8f4cba49b9cb949032691
# Parent  caf6c2da0ec8a20b83bb951730ff53bfeffa0af2
Fix comparison signedness warnings.

diff --git a/mutt_ssl.c b/mutt_ssl.c
--- a/mutt_ssl.c
+++ b/mutt_ssl.c
@@ -760,7 +760,7 @@
       subj_alt_name = sk_GENERAL_NAME_value(subj_alt_names, i);
       if (subj_alt_name->type == GEN_DNS)
       {
-       if (mutt_strlen((char *)subj_alt_name->d.ia5->data) == 
subj_alt_name->d.ia5->length  &&
+       if (mutt_strlen((char *)subj_alt_name->d.ia5->data) == 
(size_t)subj_alt_name->d.ia5->length  &&
            (match_found = hostname_match(hostname_ascii,
                                          (char 
*)(subj_alt_name->d.ia5->data))))
        {
@@ -791,7 +791,7 @@
        strfcpy (err, _("cannot get certificate common name"), errlen);
       goto out;
     }
-    if (mutt_strlen(buf) == bufsize - 1) {
+    if (mutt_strlen(buf) == (size_t)bufsize - 1) {
       match_found = hostname_match(hostname_ascii, buf);
     }
   }