aboutsummaryrefslogtreecommitdiff
path: root/lib/libftp/FtpDebug.c
diff options
context:
space:
mode:
authorRodney W. Grimes <rgrimes@FreeBSD.org>1995-05-30 05:51:47 +0000
committerRodney W. Grimes <rgrimes@FreeBSD.org>1995-05-30 05:51:47 +0000
commit6c06b4e2aa2a28d1f0bbd29ecdce35aaaf600ce8 (patch)
treee1331adb5d216f2b3fa6baa6491752348d2e5f10 /lib/libftp/FtpDebug.c
parenta2f0036ac41fe46dd47d6339982567f19437ade9 (diff)
Notes
Diffstat (limited to 'lib/libftp/FtpDebug.c')
-rw-r--r--lib/libftp/FtpDebug.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/libftp/FtpDebug.c b/lib/libftp/FtpDebug.c
index 98686b90b38a..d2b5af92f751 100644
--- a/lib/libftp/FtpDebug.c
+++ b/lib/libftp/FtpDebug.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.
@@ -29,22 +29,22 @@ STATUS FtpDebugDebug(FTP *ftp,int n, char * Message)
{
String tmp;
-
+
strcpy(tmp,Message);
-
+
if (strncmp(tmp,"PASS ",5)==0)
{
char *p=tmp+5;
while ( *p != '\0') *p++='*';
};
-
+
FtpLog(ftp->title,tmp);
return 1;
}
STATUS FtpDebugError(FTP *ftp,int n, char * Message)
{
-
+
FtpLog("FtpDebugError","");
FtpLog(ftp->title,Message);
if ( ! FtpTestFlag(ftp,FTP_NOEXIT))
@@ -74,7 +74,7 @@ STATUS FtpLog(char *name,char *str)
int
FtpHash(FTP *ftp, unsigned long chars)
{
-
+
if (chars==0) return ftp->counter=0;
ftp->counter+=chars;
fprintf(stdout,"%10u bytes transfered\r",(unsigned int)ftp->counter);
@@ -88,7 +88,7 @@ STATUS FtpBadReply550(char *s)
if(
(strstr(s,"unreachable")!=NULL) ||
(strstr(s,"Broken pipe")!=NULL)
- )
+ )
return 0;
return 1;
}