]> git.eshelyaron.com Git - emacs.git/commitdiff
* filelock.c (lock_file_1): Rename local to avoid shadowing.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2011 01:19:50 +0000 (18:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2011 01:19:50 +0000 (18:19 -0700)
src/ChangeLog
src/filelock.c

index 25935defc9bda1f0610c02926f5024db6c8477b2..0f6bd3dab9c94f602266b9c87649a156b52ff1c2 100644 (file)
@@ -1,6 +1,7 @@
 2011-03-15  Paul Eggert  <eggert@cs.ucla.edu>
 
        * filelock.c (within_one_second): Now static.
+       (lock_file_1): Rename local to avoid shadowing.
 
        * buffer.c (fix_overlays_before): Mark locals as initialized.
        (fix_start_end_in_overlays): Likewise.  This function should be
index 0e4cee3c844da95110698a415efd4418bb1d6771..2138eaa502b2d09f0b5906659423a3db69acc81e 100644 (file)
@@ -344,13 +344,13 @@ static int
 lock_file_1 (char *lfname, int force)
 {
   register int err;
-  time_t boot_time;
+  time_t boot;
   const char *user_name;
   const char *host_name;
   char *lock_info_str;
 
   /* Call this first because it can GC.  */
-  boot_time = get_boot_time ();
+  boot = get_boot_time ();
 
   if (STRINGP (Fuser_login_name (Qnil)))
     user_name = SSDATA (Fuser_login_name (Qnil));
@@ -363,9 +363,9 @@ lock_file_1 (char *lfname, int force)
   lock_info_str = (char *)alloca (strlen (user_name) + strlen (host_name)
                                  + LOCK_PID_MAX + 30);
 
-  if (boot_time)
+  if (boot)
     sprintf (lock_info_str, "%s@%s.%lu:%lu", user_name, host_name,
-            (unsigned long) getpid (), (unsigned long) boot_time);
+            (unsigned long) getpid (), (unsigned long) boot);
   else
     sprintf (lock_info_str, "%s@%s.%lu", user_name, host_name,
             (unsigned long) getpid ());