From: Daniel Stenberg Date: Tue, 14 Aug 2001 08:38:08 +0000 (+0000) Subject: const and unsigned/signed fixes X-Git-Tag: curl-7_8_1~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83a5e390654fb1e77c7c5d7bd32ba147ff022cbd;p=curl const and unsigned/signed fixes --- diff --git a/lib/telnet.c b/lib/telnet.c index 2b37d1755..2507e5c64 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -218,8 +218,8 @@ static void negotiate(struct connectdata *conn) static void printoption(struct UrlData *data, const char *direction, int cmd, int option) { - char *fmt; - char *opt; + const char *fmt; + const char *opt; if (data->bits.verbose) { @@ -843,7 +843,7 @@ static void suboption(struct connectdata *conn) for(v = tn->telnet_vars;v;v = v->next) { tmplen = (strlen(v->data) + 1); /* Add the variable only if it fits */ - if(len + tmplen < sizeof(temp)-6) { + if(len + tmplen < (int)sizeof(temp)-6) { sscanf(v->data, "%127[^,],%s", varname, varval); snprintf((char *)&temp[len], sizeof(temp) - len, "%c%s%c%s", NEW_ENV_VAR, varname,