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/FtpRetr.c | |
parent | 6de57e42c294763c78d77b0a9a7c5a08008a378a (diff) | |
download | FreeBSD-src-f05428e4cd63dde97bac14b84dd146a5c00455e3.zip FreeBSD-src-f05428e4cd63dde97bac14b84dd146a5c00455e3.tar.gz |
Remove trailing whitespace.
Diffstat (limited to 'lib/libftp/FtpRetr.c')
-rw-r--r-- | lib/libftp/FtpRetr.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/libftp/FtpRetr.c b/lib/libftp/FtpRetr.c index eb19c16..ced19b8 100644 --- a/lib/libftp/FtpRetr.c +++ b/lib/libftp/FtpRetr.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. @@ -24,7 +24,7 @@ STATUS FtpRetr (FTP * con , char * command , struct stat st; char buffer[FTPBUFSIZ]; register int size; - + FtpFilenameChecker(&in,&out); if ( FtpTestFlag(con,FTP_REST) && stat(out,&st)==0) @@ -39,28 +39,28 @@ STATUS FtpRetr (FTP * con , char * command , if ((o=Ftpfopen(out,"w+"))==NULL) return EXIT(con,LQUIT); } - + if ( FtpError(FtpData(con,command,in,"r"))) { if (con->seek==0) return EXIT(con,con->errno); - + con -> seek = 0; fclose(o); - + if ( FtpError(FtpData(con,command,in,"r")) ) { return EXIT(con,con->errno); } - + if ((o=Ftpfopen(out,"w+"))==NULL) return EXIT(con,LQUIT); } - - + + fseek(o,con->seek,0); - + while((size=FtpReadBlock(con,buffer,FTPBUFSIZ))>0) { if (write(fileno(o),buffer,size)!=size) |