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/FtpData.c | |
parent | 6de57e42c294763c78d77b0a9a7c5a08008a378a (diff) | |
download | FreeBSD-src-f05428e4cd63dde97bac14b84dd146a5c00455e3.zip FreeBSD-src-f05428e4cd63dde97bac14b84dd146a5c00455e3.tar.gz |
Remove trailing whitespace.
Diffstat (limited to 'lib/libftp/FtpData.c')
-rw-r--r-- | lib/libftp/FtpData.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/libftp/FtpData.c b/lib/libftp/FtpData.c index c1bbdb8..066671f 100644 --- a/lib/libftp/FtpData.c +++ b/lib/libftp/FtpData.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. @@ -26,17 +26,17 @@ STATUS FtpData(FTP * con,char * command , char * file ,char * mode) FREE(data); FREE(from); - + if ( gethostname( hostname , sizeof hostname ) == -1 ) return EXIT(con,QUIT); - + if ((host=(struct hostent *)gethostbyname(hostname))==0) return EXIT(con,QUIT); - + data.sin_family = host -> h_addrtype; - + bcopy(host-> h_addr_list[0],(char *)&data.sin_addr,host->h_length); - + if ((NewSocket = socket ( AF_INET , SOCK_STREAM , 0 ))<0) return EXIT(con,QUIT); @@ -54,7 +54,7 @@ STATUS FtpData(FTP * con,char * command , char * file ,char * mode) if ( getsockname ( NewSocket , (struct sockaddr *)&data , &len ) < 0 ) return EXIT(con,QUIT); - + if ( listen ( NewSocket , 1 ) < 0 ) return EXIT(con,QUIT); @@ -69,10 +69,10 @@ STATUS FtpData(FTP * con,char * command , char * file ,char * mode) if ((i = FtpCommand ( con, "REST %d" , con -> seek , 0, EOF)) != 350 ) return -i; } - - FtpAssert(con, FtpCommand ( con , command , file , + + FtpAssert(con, FtpCommand ( con , command , file , 200, 120 , 150 , 125 , 250 , EOF )); - + if (( Accepted_Socket = accept (NewSocket , (struct sockaddr *)&from , &fromlen )) < 0) { close(NewSocket); |