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

Diff for /src/usr.bin/ftp/ftp.c between version 1.55 and 1.56

version 1.55, 2003/12/16 21:46:22 version 1.56, 2004/07/20 03:50:25
Line 117 
Line 117 
 FILE    *cin, *cout;  FILE    *cin, *cout;
   
 char *  char *
 hookup(host, port)  hookup(char *host, char *port)
         char *host;  
         char *port;  
 {  {
         int s, len, tos, error;          int s, len, tos, error;
         static char hostnamebuf[MAXHOSTNAMELEN];          static char hostnamebuf[MAXHOSTNAMELEN];
Line 270 
Line 268 
 }  }
   
 void  void
 cmdabort(notused)  cmdabort(int notused)
         int notused;  
 {  {
   
         alarmtimer(0);          alarmtimer(0);
Line 326 
Line 323 
 char reply_string[BUFSIZ];              /* first line of previous reply */  char reply_string[BUFSIZ];              /* first line of previous reply */
   
 int  int
 getreply(expecteof)  getreply(int expecteof)
         int expecteof;  
 {  {
         char current_line[BUFSIZ];      /* last line of previous reply */          char current_line[BUFSIZ];      /* last line of previous reply */
         int c, n, line;          int c, n, line;
Line 449 
Line 445 
 jmp_buf sendabort;  jmp_buf sendabort;
   
 void  void
 abortsend(notused)  abortsend(int notused)
         int notused;  
 {  {
   
         alarmtimer(0);          alarmtimer(0);
Line 462 
Line 457 
 }  }
   
 void  void
 sendrequest(cmd, local, remote, printnames)  sendrequest(const char *cmd, const char *local, const char *remote,
         const char *cmd, *local, *remote;      int printnames)
         int printnames;  
 {  {
         struct stat st;          struct stat st;
         int c, d;          int c, d;
Line 744 
Line 738 
 jmp_buf recvabort;  jmp_buf recvabort;
   
 void  void
 abortrecv(notused)  abortrecv(int notused)
         int notused;  
 {  {
   
         alarmtimer(0);          alarmtimer(0);
Line 757 
Line 750 
 }  }
   
 void  void
 recvrequest(cmd, local, remote, lmode, printnames, ignorespecial)  recvrequest(const char *cmd, const char * volatile local, const char *remote,
         const char *cmd, * volatile local, *remote, *lmode;      const char *lmode, int printnames, int ignorespecial)
         int printnames, ignorespecial;  
 {  {
         FILE * volatile fout, * volatile din;          FILE * volatile fout, * volatile din;
         int (* volatile closefunc)(FILE *);          int (* volatile closefunc)(FILE *);
Line 1135 
Line 1127 
  * otherwise the server's connect may fail.   * otherwise the server's connect may fail.
  */   */
 int  int
 initconn()  initconn(void)
 {  {
         char *p, *a;          char *p, *a;
         int result = ERROR, len, tmpno = 0;          int result = ERROR, len, tmpno = 0;
Line 1523 
Line 1515 
 }  }
   
 FILE *  FILE *
 dataconn(lmode)  dataconn(const char *lmode)
         const char *lmode;  
 {  {
         union sockunion from;          union sockunion from;
         int s, fromlen = myctladdr.su_len;          int s, fromlen = myctladdr.su_len;
Line 1553 
Line 1544 
 }  }
   
 void  void
 psummary(notused)  psummary(int notused)
         int notused;  
 {  {
         int save_errno = errno;          int save_errno = errno;
   
Line 1564 
Line 1554 
 }  }
   
 void  void
 psabort(notused)  psabort(int notused)
         int notused;  
 {  {
   
         alarmtimer(0);          alarmtimer(0);
Line 1573 
Line 1562 
 }  }
   
 void  void
 pswitch(flag)  pswitch(int flag)
         int flag;  
 {  {
         sig_t oldintr;          sig_t oldintr;
         static struct comvars {          static struct comvars {
Line 1661 
Line 1649 
 }  }
   
 void  void
 abortpt(notused)  abortpt(int notused)
         int notused;  
 {  {
   
         alarmtimer(0);          alarmtimer(0);
Line 1675 
Line 1662 
 }  }
   
 void  void
 proxtrans(cmd, local, remote)  proxtrans(const char *cmd, const char *local, const char *remote)
         const char *cmd, *local, *remote;  
 {  {
         volatile sig_t oldintr;          volatile sig_t oldintr;
         int prox_type, nfnd;          int prox_type, nfnd;
Line 1797 
Line 1783 
 }  }
   
 void  void
 reset(argc, argv)  reset(int argc, char *argv[])
         int argc;  
         char *argv[];  
 {  {
         struct pollfd pfd[1];          struct pollfd pfd[1];
         int nfnd = 1;          int nfnd = 1;
Line 1818 
Line 1802 
 }  }
   
 char *  char *
 gunique(local)  gunique(const char *local)
         const char *local;  
 {  {
         static char new[MAXPATHLEN];          static char new[MAXPATHLEN];
         char *cp = strrchr(local, '/');          char *cp = strrchr(local, '/');
Line 1864 
Line 1847 
 }  }
   
 void  void
 abort_remote(din)  abort_remote(FILE *din)
         FILE *din;  
 {  {
         char buf[BUFSIZ];          char buf[BUFSIZ];
         int nfnd;          int nfnd;

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56