From 451d98c467f141e7802b91d26869b6e38ee868fc Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 13 May 1997 23:42:04 +0000 Subject: Change type of socket descriptors from FILE * to int. Change SockGets to SockRead a la read(2). This is all part of an attempt to deal with embedded NULs in IMAP messages. svn path=/trunk/; revision=992 --- fetchmail.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fetchmail.h') diff --git a/fetchmail.h b/fetchmail.h index 10597a6a..3dc569a3 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -126,7 +126,7 @@ struct query int active; int errcount; /* count transient errors in last pass */ struct query *next; /* next query control block in chain */ - FILE *smtp_sockfp; /* socket descriptor for SMTP connection */ + int smtp_socket; /* socket descriptor for SMTP connection */ unsigned int uid; /* UID of user to deliver to */ char digest [DIGESTLEN]; /* md5 digest buffer */ }; @@ -189,9 +189,9 @@ void error_init(int foreground); void error (int status, int errnum, const char *format, ...); void error_build (const char *format, ...); void error_complete (int status, int errnum, const char *format, ...); -void gen_send (FILE *sockfp, char *, ... ); -int gen_recv(FILE *sockfp, char *buf, int size); -int gen_transact (FILE *sockfp, char *, ... ); +void gen_send (int sock, char *, ... ); +int gen_recv(int sock, char *buf, int size); +int gen_transact (int sock, char *, ... ); #else void error (); void error_build (); -- cgit v1.2.3