[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.15 and 1.16

version 1.15, 2004/07/09 17:11:22 version 1.16, 2004/07/20 03:50:25
Line 62 
Line 62 
 static unsigned char complete_remote(char *, int);  static unsigned char complete_remote(char *, int);
   
 static int  static int
 comparstr(a, b)  comparstr(const void *a, const void *b)
         const void *a, *b;  
 {  {
         return (strcmp(*(char **)a, *(char **)b));          return (strcmp(*(char **)a, *(char **)b));
 }  }
Line 79 
Line 78 
  *      words   stringlist containing possible matches   *      words   stringlist containing possible matches
  */   */
 static unsigned char  static unsigned char
 complete_ambiguous(word, list, words)  complete_ambiguous(char *word, int list, StringList *words)
         char *word;  
         int list;  
         StringList *words;  
 {  {
         char insertstr[MAXPATHLEN];          char insertstr[MAXPATHLEN];
         char *lastmatch;          char *lastmatch;
Line 134 
Line 130 
  * Complete a command   * Complete a command
  */   */
 static unsigned char  static unsigned char
 complete_command(word, list)  complete_command(char *word, int list)
         char *word;  
         int list;  
 {  {
         struct cmd *c;          struct cmd *c;
         StringList *words;          StringList *words;
Line 162 
Line 156 
  * Complete a local file   * Complete a local file
  */   */
 static unsigned char  static unsigned char
 complete_local(word, list)  complete_local(char *word, int list)
         char *word;  
         int list;  
 {  {
         StringList *words;          StringList *words;
         char dir[MAXPATHLEN];          char dir[MAXPATHLEN];
Line 217 
Line 209 
  * Complete a remote file   * Complete a remote file
  */   */
 static unsigned char  static unsigned char
 complete_remote(word, list)  complete_remote(char *word, int list)
         char *word;  
         int list;  
 {  {
         static StringList *dirlist;          static StringList *dirlist;
         static char      lastdir[MAXPATHLEN];          static char      lastdir[MAXPATHLEN];
Line 298 
Line 288 
  * Generic complete routine   * Generic complete routine
  */   */
 unsigned char  unsigned char
 complete(el, ch)  complete(EditLine *el, int ch)
         EditLine *el;  
         int ch;  
 {  {
         static char word[FTPBUFLEN];          static char word[FTPBUFLEN];
         static int lastc_argc, lastc_argo;          static int lastc_argc, lastc_argo;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16