const and unsigned/signed fixes
authorDaniel Stenberg <daniel@haxx.se>
Tue, 14 Aug 2001 08:38:08 +0000 (08:38 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 14 Aug 2001 08:38:08 +0000 (08:38 +0000)
lib/telnet.c

index 2b37d17..2507e5c 100644 (file)
@@ -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,