diff options
| author | Paul Eggert | 2011-04-04 01:11:21 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-04 01:11:21 -0700 |
| commit | afd4052b6c0cf0deb49b709a41d43748c773a3d0 (patch) | |
| tree | 9ac4ef5d01f67d39b3d120d64cf8fb96ba061815 /src/process.c | |
| parent | aba7731a6c29e0e21f731f7adef34a070d67d9f3 (diff) | |
| download | emacs-afd4052b6c0cf0deb49b709a41d43748c773a3d0.tar.gz emacs-afd4052b6c0cf0deb49b709a41d43748c773a3d0.zip | |
* process.c (create_pty): Remove unnecessary "volatile"s.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/process.c b/src/process.c index 080eedabc92..57b76b67f27 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -2146,9 +2146,7 @@ void | |||
| 2146 | create_pty (Lisp_Object process) | 2146 | create_pty (Lisp_Object process) |
| 2147 | { | 2147 | { |
| 2148 | int inchannel, outchannel; | 2148 | int inchannel, outchannel; |
| 2149 | 2149 | int pty_flag = 0; | |
| 2150 | /* Use volatile to protect variables from being clobbered by longjmp. */ | ||
| 2151 | volatile int pty_flag = 0; | ||
| 2152 | 2150 | ||
| 2153 | inchannel = outchannel = -1; | 2151 | inchannel = outchannel = -1; |
| 2154 | 2152 | ||
| @@ -2164,9 +2162,9 @@ create_pty (Lisp_Object process) | |||
| 2164 | #ifdef O_NOCTTY | 2162 | #ifdef O_NOCTTY |
| 2165 | /* Don't let this terminal become our controlling terminal | 2163 | /* Don't let this terminal become our controlling terminal |
| 2166 | (in case we don't have one). */ | 2164 | (in case we don't have one). */ |
| 2167 | volatile int forkout = emacs_open (pty_name, O_RDWR | O_NOCTTY, 0); | 2165 | int forkout = emacs_open (pty_name, O_RDWR | O_NOCTTY, 0); |
| 2168 | #else | 2166 | #else |
| 2169 | volatile int forkout = emacs_open (pty_name, O_RDWR, 0); | 2167 | int forkout = emacs_open (pty_name, O_RDWR, 0); |
| 2170 | #endif | 2168 | #endif |
| 2171 | if (forkout < 0) | 2169 | if (forkout < 0) |
| 2172 | report_file_error ("Opening pty", Qnil); | 2170 | report_file_error ("Opening pty", Qnil); |