ifile should be global as well as ofile. It will be needed by authentication handlers.
Showing
1 changed file
with
1 additions
and
2 deletions
... | @@ -20,6 +20,7 @@ | ... | @@ -20,6 +20,7 @@ |
20 | # include "../MySql/MySql.h" | 20 | # include "../MySql/MySql.h" |
21 | #endif | 21 | #endif |
22 | 22 | ||
23 | FILE *ifile; | ||
23 | FILE *ofile; | 24 | FILE *ofile; |
24 | mailbox_t mbox; | 25 | mailbox_t mbox; |
25 | char *homedir; | 26 | char *homedir; |
... | @@ -180,8 +181,6 @@ main (int argc, char **argv) | ... | @@ -180,8 +181,6 @@ main (int argc, char **argv) |
180 | static int | 181 | static int |
181 | imap4d_mainloop (int infile, int outfile) | 182 | imap4d_mainloop (int infile, int outfile) |
182 | { | 183 | { |
183 | FILE *ifile; | ||
184 | |||
185 | /* Reset hup to exit. */ | 184 | /* Reset hup to exit. */ |
186 | signal (SIGHUP, imap4d_signal); | 185 | signal (SIGHUP, imap4d_signal); |
187 | /* Timeout alarm. */ | 186 | /* Timeout alarm. */ | ... | ... |
-
Please register or sign in to post a comment