aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-07-15 21:28:10 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-07-15 21:28:10 +0200
commitf069b40f9d1bf1ebd9a35ce416077de0881186c6 (patch)
treeac949aa948ffd96c47cd2f6b49c1b1ab7d4ea199 /lib/vtls
parent4da6e0c966dc74d51720df5c5ec7ce00e364655f (diff)
gnutls: fix compiler warning
conversion to 'int' from 'long int' may alter its value
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/gtls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c
index eea11d11f..e9f60b5e2 100644
--- a/lib/vtls/gtls.c
+++ b/lib/vtls/gtls.c
@@ -51,6 +51,7 @@
#include "connect.h" /* for the connect timeout */
#include "select.h"
#include "rawstr.h"
+#include "warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -588,7 +589,7 @@ gtls_connect_step1(struct connectdata *conn,
if(!strcmp(err, GNUTLS_SRP)) {
/* This GnuTLS was probably compiled without support for SRP.
* Note that fact and try again without it. */
- int validprioritylen = err - prioritylist;
+ int validprioritylen = curlx_uztosi(err - prioritylist);
char *prioritycopy = strdup(prioritylist);
if(!prioritycopy)
return CURLE_OUT_OF_MEMORY;