* process.c (create_pty): Remove unnecessary "volatile"s.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Apr 2011 08:11:21 +0000 (01:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Apr 2011 08:11:21 +0000 (01:11 -0700)
src/ChangeLog
src/process.c

index 621a4dd..bea6ffd 100644 (file)
@@ -2,6 +2,7 @@
 
        * process.c (list_processes_1, create_pty, read_process_output):
        (exec_sentinel): Remove vars that were set but not used.
+       (create_pty): Remove unnecessary "volatile"s.
 
        * bytecode.c (exec_byte_code): Rename local to avoid shadowing.
 
index 080eeda..57b76b6 100644 (file)
@@ -2146,9 +2146,7 @@ void
 create_pty (Lisp_Object process)
 {
   int inchannel, outchannel;
-
-  /* Use volatile to protect variables from being clobbered by longjmp.  */
-  volatile int pty_flag = 0;
+  int pty_flag = 0;
 
   inchannel = outchannel = -1;
 
@@ -2164,9 +2162,9 @@ create_pty (Lisp_Object process)
 #ifdef O_NOCTTY
       /* Don't let this terminal become our controlling terminal
         (in case we don't have one).  */
-      volatile int forkout = emacs_open (pty_name, O_RDWR | O_NOCTTY, 0);
+      int forkout = emacs_open (pty_name, O_RDWR | O_NOCTTY, 0);
 #else
-      volatile int forkout = emacs_open (pty_name, O_RDWR, 0);
+      int forkout = emacs_open (pty_name, O_RDWR, 0);
 #endif
       if (forkout < 0)
        report_file_error ("Opening pty", Qnil);