aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-31 06:47:56 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-31 06:47:56 +0000
commitf9f66749c22dcb49ed96d9aa43c4979d7b27742f (patch)
tree70aff56756cf718d1efe897d88ed33443e079b9e /fetchmail.c
parenta2278043c64feb80565c1a6bf6456c687f5a5923 (diff)
downloadfetchmail-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.c6
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);