diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-08-14 08:38:08 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-08-14 08:38:08 +0000 |
commit | 83a5e390654fb1e77c7c5d7bd32ba147ff022cbd (patch) | |
tree | f827c9c1f72920336d8c7f98480bd9a48480b27b /lib | |
parent | bd0afd8db4289d8dd90b82892feed5515c9c9e9d (diff) |
const and unsigned/signed fixes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/telnet.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, |