/[inetutils]/inetutils/ftp/ftp.c
ViewVC logotype

Diff of /inetutils/ftp/ftp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by ams, Sun Apr 28 16:56:10 2002 UTC revision 1.24 by gray, Tue May 14 15:13:56 2002 UTC
# Line 84  static char sccsid[] = "@(#)ftp.c      8.6 (B Line 84  static char sccsid[] = "@(#)ftp.c      8.6 (B
84    
85  #include "ftp_var.h"  #include "ftp_var.h"
86    
87  #ifndef HAVE_DECL_FCLOSE  #if !HAVE_DECL_FCLOSE
88  /* Some systems don't declare fclose in <stdio.h>, so do it ourselves.  */  /* Some systems don't declare fclose in <stdio.h>, so do it ourselves.  */
89  extern int fclose __P ((FILE *));  extern int fclose __P ((FILE *));
90  #endif  #endif
91    
92  #ifndef HAVE_DECL_PCLOSE  #if !HAVE_DECL_PCLOSE
93  /* Some systems don't declare pclose in <stdio.h>, so do it ourselves.  */  /* Some systems don't declare pclose in <stdio.h>, so do it ourselves.  */
94  extern int pclose __P ((FILE *));  extern int pclose __P ((FILE *));
95  #endif  #endif
# Line 140  hookup(host, port) Line 140  hookup(host, port)
140                  }                  }
141                  hisctladdr.sin_family = hp->h_addrtype;                  hisctladdr.sin_family = hp->h_addrtype;
142                  memmove((caddr_t)&hisctladdr.sin_addr,                  memmove((caddr_t)&hisctladdr.sin_addr,
143  #ifdef HAVE_HOSTENT_H_ADDR_LIST  #ifdef HAVE_STRUCT_HOSTENT_H_ADDR_LIST
144                                  hp->h_addr_list[0],                                  hp->h_addr_list[0],
145  #else  #else
146                                  hp->h_addr,                                  hp->h_addr,
# Line 157  hookup(host, port) Line 157  hookup(host, port)
157          }          }
158          hisctladdr.sin_port = port;          hisctladdr.sin_port = port;
159          while (connect(s, (struct sockaddr *)&hisctladdr, sizeof (hisctladdr)) < 0) {          while (connect(s, (struct sockaddr *)&hisctladdr, sizeof (hisctladdr)) < 0) {
160  #ifdef HAVE_HOSTENT_H_ADDR_LIST  #ifdef HAVE_STRUCT_HOSTENT_H_ADDR_LIST
161                  if (hp && hp->h_addr_list[1]) {                  if (hp && hp->h_addr_list[1]) {
162                          int oerrno = errno;                          int oerrno = errno;
163                          char *ia;                          char *ia;

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26