aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-11-04 12:59:34 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-11-04 14:17:11 +0000
commit90acbfd52e42c1fb752010c003a30f48aa47dd3a (patch)
tree63c733b0d133e526fbf729e6aa4ae6c0093d4be4
parent989b28fe973163c34a877d4ddcfee0b7267f20ae (diff)
nss.c: Fixed compilation warnings (Take Two)
nss.c:702: warning: pointer targets in passing argument 3 of 'Curl_extract_certinfo' differ in signedness nss.c:702: warning: pointer targets in passing argument 4 of 'Curl_extract_certinfo' differ in signedness Made sure the cast was correctly "unsigned char *" to "char *" and not "unsigned char *" to "unsigned char *".
-rw-r--r--lib/nss.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/nss.c b/lib/nss.c
index 6c8c90105..eb2fea984 100644
--- a/lib/nss.c
+++ b/lib/nss.c
@@ -696,10 +696,8 @@ static void display_conn_info(struct connectdata *conn, PRFileDesc *sock)
}
Curl_ssl_init_certinfo(conn->data, i);
for(i = 0; cert; cert = cert2) {
- Curl_extract_certinfo(conn, i++,
- (unsigned char *) cert->derCert.data,
- (unsigned char *) cert->derCert.data +
- cert->derCert.len);
+ Curl_extract_certinfo(conn, i++, (char *)cert->derCert.data,
+ (char *)cert->derCert.data + cert->derCert.len);
if(cert->isRoot) {
CERT_DestroyCertificate(cert);
break;