Port movemail to RHEL 6 with --enable-gcc-warnings

* lib-src/movemail.c (main): Declare local only if needed.
This commit is contained in:
Paul Eggert 2015-09-09 03:36:08 -07:00
parent c28542c29f
commit b6c8cb57fc

View file

@ -174,8 +174,6 @@ main (int argc, char **argv)
int desc;
#endif /* not MAIL_USE_SYSTEM_LOCK */
char *spool_name = 0;
#ifdef MAIL_USE_POP
bool pop_reverse_order = false;
# define ARGSTR "pr"
@ -247,6 +245,10 @@ main (int argc, char **argv)
char *lockname = 0;
#ifdef MAIL_USE_MAILLOCK
char *spool_name = 0;
#endif
#ifndef MAIL_USE_SYSTEM_LOCK
#ifdef MAIL_USE_MAILLOCK
spool_name = mail_spool_name (inname);