]> code.delx.au - gnu-emacs/blobdiff - src/filelock.c
Simplify recording of main thread's ID on MS-Windows
[gnu-emacs] / src / filelock.c
index 4ee7a01ecb8e3f2937085337e8262c0cfb278a8e..7f9b6e7f8e84b4c01420d67476dafdf11923cabc 100644 (file)
@@ -45,10 +45,8 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <c-ctype.h>
 
 #include "lisp.h"
-#include "character.h"
 #include "buffer.h"
 #include "coding.h"
-#include "systime.h"
 #ifdef WINDOWSNT
 #include <share.h>
 #include <sys/socket.h>        /* for fcntl */
@@ -666,7 +664,6 @@ lock_file (Lisp_Object fn)
   Lisp_Object orig_fn, encoded_fn;
   char *lfname;
   lock_info_type lock_info;
-  struct gcpro gcpro1;
   USE_SAFE_ALLOCA;
 
   /* Don't do locking while dumping Emacs.
@@ -676,7 +673,6 @@ lock_file (Lisp_Object fn)
     return;
 
   orig_fn = fn;
-  GCPRO1 (fn);
   fn = Fexpand_file_name (fn, Qnil);
 #ifdef WINDOWSNT
   /* Ensure we have only '/' separators, to avoid problems with
@@ -727,8 +723,6 @@ lock_file (Lisp_Object fn)
        }
       SAFE_FREE ();
     }
-
-  UNGCPRO;
 }
 
 void