diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 05:51:47 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 05:51:47 +0000 |
commit | f05428e4cd63dde97bac14b84dd146a5c00455e3 (patch) | |
tree | e1331adb5d216f2b3fa6baa6491752348d2e5f10 /lib/libftp/FtpConnect.c | |
parent | 6de57e42c294763c78d77b0a9a7c5a08008a378a (diff) | |
download | FreeBSD-src-f05428e4cd63dde97bac14b84dd146a5c00455e3.zip FreeBSD-src-f05428e4cd63dde97bac14b84dd146a5c00455e3.tar.gz |
Remove trailing whitespace.
Diffstat (limited to 'lib/libftp/FtpConnect.c')
-rw-r--r-- | lib/libftp/FtpConnect.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/libftp/FtpConnect.c b/lib/libftp/FtpConnect.c index e114a50..4de95ab 100644 --- a/lib/libftp/FtpConnect.c +++ b/lib/libftp/FtpConnect.c @@ -2,9 +2,9 @@ Library for ftpd clients.(libftp) Copyright by Oleg Orel All rights reserved. - -This library is desined for free, non-commercial software creation. -It is changeable and can be improved. The author would greatly appreciate + +This library is desined for free, non-commercial software creation. +It is changeable and can be improved. The author would greatly appreciate any advises, new components and patches of the existing programs. Commercial usage is also possible with participation of it's author. @@ -22,22 +22,22 @@ STATUS FtpConnect(FTP **con,char * hostname) register int new_socket; String S1; STATUS x; - + *con = FtpCreateObject(); - + if ((host=FtpGetHost(hostname))==NULL) return EXIT((*con),QUIT); - + strcpy((*con) -> title,host -> h_name); /* Default title for FtpLog */ - + unit.sin_family = host -> h_addrtype; /* AF_INET */ - + bcopy(host-> h_addr_list[0],(char *)&unit.sin_addr,host->h_length); if ( ( new_socket = socket ( unit.sin_family , SOCK_STREAM , 0)) < 0) return EXIT((*con),QUIT); unit.sin_port = htons((*con)->port); - + while ( connect ( new_socket , (struct sockaddr *)&unit , sizeof unit ) < 0 ) { host -> h_addr_list ++; @@ -53,7 +53,7 @@ STATUS FtpConnect(FTP **con,char * hostname) return EXIT((*con),QUIT); } } - + FTPCMD(*con) = fdopen(new_socket,"r+"); if ( (x=FtpGetMessage(*con,S1)) == QUIT ) @@ -64,7 +64,7 @@ STATUS FtpConnect(FTP **con,char * hostname) return EXIT((*con),-x); } if ( (*con)->mode != 'A' ) FtpType(*con,(*con)->mode); - + return EXIT((*con),x); } |