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/Ftpfopen.c | |
parent | 6de57e42c294763c78d77b0a9a7c5a08008a378a (diff) | |
download | FreeBSD-src-f05428e4cd63dde97bac14b84dd146a5c00455e3.zip FreeBSD-src-f05428e4cd63dde97bac14b84dd146a5c00455e3.tar.gz |
Remove trailing whitespace.
Diffstat (limited to 'lib/libftp/Ftpfopen.c')
-rw-r--r-- | lib/libftp/Ftpfopen.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/libftp/Ftpfopen.c b/lib/libftp/Ftpfopen.c index b7b96d5..9b89bb3 100644 --- a/lib/libftp/Ftpfopen.c +++ b/lib/libftp/Ftpfopen.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,9 +24,9 @@ enum {T_EMPTY=0,T_FILE,T_STREAM,T_PIPE,T_FULL}; FILE *Ftpfopen(char *filename,char *mode) { FILE *fp; - + if (!init) - { + { bzero(fds_types,NFDS*sizeof(fds_types[0])); init=1; } @@ -36,22 +36,22 @@ FILE *Ftpfopen(char *filename,char *mode) fds_types[fileno(stdin)]=T_STREAM; return stdin; } - + if (!strcmp(filename,"*STDOUT*") || (!strcmp(filename,"-") && (mode[0]=='w'))) { fds_types[fileno(stdout)]=T_STREAM; return stdout; } - + if (strcmp(filename,"*STDERR*")==0) { fds_types[fileno(stderr)]=T_STREAM; return stderr; } - - if (*filename=='|') + + if (*filename=='|') { fp=popen(filename+1,mode); if (fp==NULL) return fp; @@ -63,33 +63,33 @@ FILE *Ftpfopen(char *filename,char *mode) if (fp==NULL) return fp; fds_types[fileno(fp)]=T_FILE; return fp; - + } int Ftpfclose(FILE *fp) { if (!init) - { + { bzero(fds_types,NFDS*sizeof(fds_types[0])); init=1; } switch (fds_types[fileno(fp)]) { - + case T_FILE: - + return FtpFullClose(fp); - + case T_STREAM: return fflush(fp); - + case T_PIPE: - + return pclose(fp); - + default: return -1; |