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

Diff for /src/usr.bin/ftp/cmds.c between version 1.68 and 1.69

version 1.68, 2009/04/27 21:37:13 version 1.69, 2009/04/27 22:51:51
Line 270 
Line 270 
 }  }
 #endif /* !SMALL */  #endif /* !SMALL */
   
   #ifndef SMALL
 void  void
 put(int argc, char *argv[])  put(int argc, char *argv[])
 {  {
   
         (void)putit(argc, argv, 0);          (void)putit(argc, argv, 0);
 }  }
   #endif /* !SMALL */
   
 /*  /*
  * Send a single file.   * Send a single file.
  */   */
   #ifndef SMALL
 void  void
 putit(int argc, char *argv[], int restartit)  putit(int argc, char *argv[], int restartit)
 {  {
Line 342 
Line 345 
         if (oldargv1 != argv[1])        /* free up after globulize() */          if (oldargv1 != argv[1])        /* free up after globulize() */
                 free(argv[1]);                  free(argv[1]);
 }  }
   #endif /* !SMALL */
   
 /*  /*
  * Send multiple files.   * Send multiple files.
  */   */
   #ifndef SMALL
 void  void
 mput(int argc, char *argv[])  mput(int argc, char *argv[])
 {  {
Line 514 
Line 519 
         (void)signal(SIGINT, oldintr);          (void)signal(SIGINT, oldintr);
         mflag = 0;          mflag = 0;
 }  }
   #endif /* !SMALL */
   
 #ifndef SMALL  #ifndef SMALL
 void  void
Line 857 
Line 863 
             epsv4bad ? " (disabled for this connection)" : "");              epsv4bad ? " (disabled for this connection)" : "");
 #ifndef SMALL  #ifndef SMALL
         fprintf(ttyout, "Command line editing: %s.\n", onoff(editing));          fprintf(ttyout, "Command line editing: %s.\n", onoff(editing));
 #endif /* !SMALL */  
         if (macnum > 0) {          if (macnum > 0) {
                 fputs("Macros:\n", ttyout);                  fputs("Macros:\n", ttyout);
                 for (i=0; i<macnum; i++) {                  for (i=0; i<macnum; i++) {
                         fprintf(ttyout, "\t%s\n", macros[i].mac_name);                          fprintf(ttyout, "\t%s\n", macros[i].mac_name);
                 }                  }
         }          }
   #endif /* !SMALL */
         code = 0;          code = 0;
 }  }
   
Line 1682 
Line 1688 
         cout = NULL;          cout = NULL;
         connected = 0;          connected = 0;
         data = -1;          data = -1;
   #ifndef SMALL
         if (!proxy) {          if (!proxy) {
                 macnum = 0;                  macnum = 0;
         }          }
   #endif /* !SMALL */
 }  }
   
 void  void
Line 2122 
Line 2130 
         (void)command("SYST");          (void)command("SYST");
 }  }
   
   #ifndef SMALL
 void  void
 macdef(int argc, char *argv[])  macdef(int argc, char *argv[])
 {  {
Line 2179 
Line 2188 
                 }                  }
         }          }
 }  }
   #endif /* !SMALL */
   
 /*  /*
  * Get size of file on remote machine   * Get size of file on remote machine

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69