diff options
author | jkh <jkh@FreeBSD.org> | 1996-06-22 21:43:56 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-06-22 21:43:56 +0000 |
commit | 325e17c4e0b2a3f766a3ecb90a9c69f92012fd39 (patch) | |
tree | 669706213e91919edb1ef2f3819294dfd56e1cc4 /lib/libftpio/ftpio.h | |
parent | 36706f9cf024774b5c3644716652409b436d2999 (diff) | |
download | FreeBSD-src-325e17c4e0b2a3f766a3ecb90a9c69f92012fd39.zip FreeBSD-src-325e17c4e0b2a3f766a3ecb90a9c69f92012fd39.tar.gz |
Fix a bug in the way binary/ascii settings were being done. New
ftpAscii() call sets connection to ascii as counterpart to ftpBinary().
Diffstat (limited to 'lib/libftpio/ftpio.h')
-rw-r--r-- | lib/libftpio/ftpio.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libftpio/ftpio.h b/lib/libftpio/ftpio.h index 40e2429..9ba2f1f 100644 --- a/lib/libftpio/ftpio.h +++ b/lib/libftpio/ftpio.h @@ -20,19 +20,19 @@ * Turned inside out. Now returns xfers as new file ids, not as a special * `state' of FTP_t * - * $Id: ftpio.h,v 1.1.1.1 1996/06/17 12:26:06 jkh Exp $ + * $Id: ftpio.h,v 1.2 1996/06/17 15:28:08 jkh Exp $ */ /* Internal housekeeping data structure for FTP sessions */ typedef struct { enum { init, isopen } con_state; int fd_ctrl; - int binary; - int passive; int addrtype; char *host; char *file; int errno; + int is_binary; + int is_passive; } *FTP_t; /* Exported routines - deal only with FILE* type */ @@ -42,7 +42,8 @@ extern int ftpErrno(FILE *fp); extern size_t ftpGetSize(FILE *fp, char *file); extern FILE *ftpGet(FILE *fp, char *file, int *seekto); extern FILE *ftpPut(FILE *fp, char *file); -extern int ftpBinary(FILE *fp, int status); +extern int ftpAscii(FILE *fp); +extern int ftpBinary(FILE *fp); extern int ftpPassive(FILE *fp, int status); extern FILE *ftpGetURL(char *url, char *user, char *passwd); extern FILE *ftpPutURL(char *url, char *user, char *passwd); |