aboutsummaryrefslogtreecommitdiff
path: root/lib/ssluse.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-08-27 06:31:28 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-08-27 06:31:28 +0000
commit8cf0814a143d99de813fbd1653b785252b4c58a6 (patch)
treeea8aac5e7a720e0a6147c69e7b58cd460c82c14a /lib/ssluse.c
parent523767660c05cf359091694fcaccb763ebb7b2d7 (diff)
Fixed some minor type mismatches and missing consts mainly found by splint.
Diffstat (limited to 'lib/ssluse.c')
-rw-r--r--lib/ssluse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c
index acaf9612d..3aea2dee9 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -858,9 +858,9 @@ int Curl_ossl_close_all(struct SessionHandle *data)
static int Curl_ASN1_UTCTIME_output(struct connectdata *conn,
const char *prefix,
- ASN1_UTCTIME *tm)
+ const ASN1_UTCTIME *tm)
{
- char *asn1_string;
+ const char *asn1_string;
int gmt=FALSE;
int i;
int year=0,month=0,day=0,hour=0,minute=0,second=0;
@@ -874,7 +874,7 @@ static int Curl_ASN1_UTCTIME_output(struct connectdata *conn,
return 0;
i=tm->length;
- asn1_string=(char *)tm->data;
+ asn1_string=(const char *)tm->data;
if(i < 10)
return 1;
@@ -929,7 +929,7 @@ static int Curl_ASN1_UTCTIME_output(struct connectdata *conn,
static int hostmatch(const char *hostname, const char *pattern)
{
while (1) {
- int c = *pattern++;
+ char c = *pattern++;
if (c == '\0')
return (*hostname ? HOST_NOMATCH : HOST_MATCH);