gnutls: fix compiler warnings

This commit is contained in:
Daniel Stenberg 2012-11-06 19:45:51 +01:00
parent 41eec4efa2
commit ab1f80200a
1 changed files with 2 additions and 2 deletions

View File

@ -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);