]> code.delx.au - gnu-emacs/blobdiff - lib-src/movemail.c
Refix movemail GCC pacification
[gnu-emacs] / lib-src / movemail.c
index c25db625387e5eded3813d699fbea439d481f40f..84c8ce24286f6255a26a5795e13759c90b3aa72b 100644 (file)
@@ -244,17 +244,14 @@ main (int argc, char **argv)
 #ifndef DISABLE_DIRECT_ACCESS
 
   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);
 #endif
   if (! spool_name)
     {
+#ifndef MAIL_USE_SYSTEM_LOCK
       /* Use a lock file named after our first argument with .lock appended:
         If it exists, the mail file is locked.  */
       /* Note: this locking mechanism is *required* by the mailer
@@ -325,8 +322,8 @@ main (int argc, char **argv)
        }
 
       delete_lockname = lockname;
-    }
 #endif /* not MAIL_USE_SYSTEM_LOCK */
+    }
 
 #ifdef SIGCHLD
   signal (SIGCHLD, SIG_DFL);