diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-11-06 19:45:51 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-11-06 19:46:17 +0100 |
commit | ab1f80200a6d1bcbac167ede429be52f3ef838bc (patch) | |
tree | 09ee77bb815bb6db2379af12720e0766ad0397d8 | |
parent | 41eec4efa2a8c653973b25240c5cda81bb12e26f (diff) |
gnutls: fix compiler warnings
-rw-r--r-- | lib/gtls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gtls.c b/lib/gtls.c index d8e88e2c4..a17d9eeda 100644 --- a/lib/gtls.c +++ b/lib/gtls.c @@ -304,7 +304,7 @@ static CURLcode handshake(struct connectdata *conn, return CURLE_OK; } else if((rc < 0) && !gnutls_error_is_fatal(rc)) { - char *strerr = NULL; + const char *strerr = NULL; if(rc == GNUTLS_E_WARNING_ALERT_RECEIVED) { int alert = gnutls_alert_get(session); @@ -317,7 +317,7 @@ static CURLcode handshake(struct connectdata *conn, failf(data, "gnutls_handshake() warning: %s", strerr); } else if(rc < 0) { - char *strerr = NULL; + const char *strerr = NULL; if(rc == GNUTLS_E_FATAL_ALERT_RECEIVED) { int alert = gnutls_alert_get(session); |