projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c28542c
)
Port movemail to RHEL 6 with --enable-gcc-warnings
author
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 9 Sep 2015 10:36:08 +0000
(
03:36
-0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 9 Sep 2015 10:36:25 +0000
(
03:36
-0700)
* lib-src/movemail.c (main): Declare local only if needed.
lib-src/movemail.c
patch
|
blob
|
history
diff --git
a/lib-src/movemail.c
b/lib-src/movemail.c
index 231bc22fa89609ebe766f0d49b42be13273f3003..c25db625387e5eded3813d699fbea439d481f40f 100644
(file)
--- a/
lib-src/movemail.c
+++ b/
lib-src/movemail.c
@@
-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);