Reformat/tidy some of the ASN1 code.
[openssl.git] / crypto / asn1 / a_utctm.c
index 6bc609a905ade998ca9852354e18bc03ef128e17..fea65903220fcc720ba96ba49a12af440218e9ad 100644 (file)
@@ -162,7 +162,7 @@ err:
        return(0);
        }
 
-int ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, char *str)
+int ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, const char *str)
        {
        ASN1_UTCTIME t;
 
@@ -200,7 +200,7 @@ ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t)
                return(NULL);
 
        p=(char *)s->data;
-       if ((p == NULL) || (s->length < len))
+       if ((p == NULL) || ((size_t)s->length < len))
                {
                p=OPENSSL_malloc(len);
                if (p == NULL) return(NULL);