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

Diff for /src/usr.bin/ftp/complete.c between version 1.6 and 1.7

version 1.6, 1997/04/16 05:02:43 version 1.7, 1997/04/23 20:33:00
Line 118 
Line 118 
                 }                  }
         }          }
   
         putchar('\n');          putc('\n', ttyout);
         qsort(words->sl_str, words->sl_cur, sizeof(char *), comparstr);          qsort(words->sl_str, words->sl_cur, sizeof(char *), comparstr);
         list_vertical(words);          list_vertical(words);
         return (CC_REDISPLAY);          return (CC_REDISPLAY);
Line 285 
Line 285 
                         sl_add(dirlist, tcp);                          sl_add(dirlist, tcp);
                 }                  }
                 if (emesg != NULL) {                  if (emesg != NULL) {
                         printf("\n%s\n", emesg);                          fprintf(ttyout, "\n%s\n", emesg);
                         return (CC_REDISPLAY);                          return (CC_REDISPLAY);
                 }                  }
                 (void)strcpy(lastdir, dir);                  (void)strcpy(lastdir, dir);
Line 366 
Line 366 
                 case 'r':                       /* remote complete */                  case 'r':                       /* remote complete */
                 case 'R':                  case 'R':
                         if (connected != -1) {                          if (connected != -1) {
                                 puts("\nMust be logged in to complete.");                                  fputs("\nMust be logged in to complete.\n", ttyout);
                                 return (CC_REDISPLAY);                                  return (CC_REDISPLAY);
                         }                          }
                         return (complete_remote(word, dolist));                          return (complete_remote(word, dolist));

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7