[BACK]Return to small.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ftp

Diff for /src/usr.bin/ftp/small.c between version 1.3 and 1.4

version 1.3, 2015/01/16 06:40:08 version 1.4, 2015/01/30 04:45:45
Line 91 
Line 91 
         char    *t_name;          char    *t_name;
         char    *t_mode;          char    *t_mode;
         int     t_type;          int     t_type;
         char    *t_arg;  
 } types[] = {  } types[] = {
         { "ascii",      "A",    TYPE_A, 0 },          { "ascii",      "A",    TYPE_A },
         { "binary",     "I",    TYPE_I, 0 },          { "binary",     "I",    TYPE_I },
         { "image",      "I",    TYPE_I, 0 },          { "image",      "I",    TYPE_I },
         { "ebcdic",     "E",    TYPE_E, 0 },  
         { "tenex",      "L",    TYPE_L, bytename },  
         { NULL }          { NULL }
 };  };
   
Line 136 
Line 133 
                 code = -1;                  code = -1;
                 return;                  return;
         }          }
         if ((p->t_arg != NULL) && (*(p->t_arg) != '\0'))          comret = command("TYPE %s", p->t_mode);
                 comret = command("TYPE %s %s", p->t_mode, p->t_arg);  
         else  
                 comret = command("TYPE %s", p->t_mode);  
         if (comret == COMPLETE) {          if (comret == COMPLETE) {
                 (void)strlcpy(typename, p->t_name, sizeof typename);                  (void)strlcpy(typename, p->t_name, sizeof typename);
                 curtype = type = p->t_type;                  curtype = type = p->t_type;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4