Commit cc5a012a cc5a012ab9180b977b625795e0937d1d229fc8a2 by Sergey Poznyakoff

ifile should be global as well as ofile. It will be needed by authentication handlers.

1 parent 24025b39
...@@ -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. */
......