diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-31 06:47:56 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-31 06:47:56 +0000 |
commit | f9f66749c22dcb49ed96d9aa43c4979d7b27742f (patch) | |
tree | 70aff56756cf718d1efe897d88ed33443e079b9e /fetchmail.c | |
parent | a2278043c64feb80565c1a6bf6456c687f5a5923 (diff) | |
download | fetchmail-f9f66749c22dcb49ed96d9aa43c4979d7b27742f.tar.gz fetchmail-f9f66749c22dcb49ed96d9aa43c4979d7b27742f.tar.bz2 fetchmail-f9f66749c22dcb49ed96d9aa43c4979d7b27742f.zip |
STEP 4: Make SMTP functions take file pointer arguments.
svn path=/trunk/; revision=447
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fetchmail.c b/fetchmail.c index 4d55bf91..f7bce817 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -528,7 +528,7 @@ int optind; goto no_new_leader; } ctl->leader = ctl; - ctl->smtp_socket = -1; + ctl->smtp_sockfp = (FILE *)NULL; no_new_leader:; } @@ -582,8 +582,8 @@ void termhook(int sig) /* terminate all SMTP connections cleanly */ for (ctl = querylist; ctl; ctl = ctl->next) - if (ctl->leader == ctl && ctl->smtp_socket != -1) - SMTP_quit(ctl->smtp_socket); + if (ctl->leader == ctl && ctl->smtp_sockfp != (FILE *)NULL) + SMTP_quit(ctl->smtp_sockfp); if (!check_only) write_saved_lists(querylist, idfile); |