diff options
| author | Richard M. Stallman | 1993-11-25 05:41:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-25 05:41:47 +0000 |
| commit | 71f06467fd104d72d7558cd2bab7b3981c830e73 (patch) | |
| tree | ef30d22c405097bb7aacf65cfcc243f57ab15639 /src | |
| parent | 5f46b51a31e37267fffae906afcab3eee582e84b (diff) | |
| download | emacs-71f06467fd104d72d7558cd2bab7b3981c830e73.tar.gz emacs-71f06467fd104d72d7558cd2bab7b3981c830e73.zip | |
(init_baud_rate): Avoid referring to sg uninitialized.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index ce457f63b71..94e58a354cb 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -235,7 +235,7 @@ stuff_char (c) | |||
| 235 | #ifdef TIOCSTI | 235 | #ifdef TIOCSTI |
| 236 | ioctl (input_fd, TIOCSTI, &c); | 236 | ioctl (input_fd, TIOCSTI, &c); |
| 237 | #else /* no TIOCSTI */ | 237 | #else /* no TIOCSTI */ |
| 238 | error ("Cannot stuff terminal input characters in this version of Unix."); | 238 | error ("Cannot stuff terminal input characters in this version of Unix"); |
| 239 | #endif /* no TIOCSTI */ | 239 | #endif /* no TIOCSTI */ |
| 240 | } | 240 | } |
| 241 | 241 | ||
| @@ -257,14 +257,14 @@ init_baud_rate () | |||
| 257 | #ifdef HAVE_TERMIOS | 257 | #ifdef HAVE_TERMIOS |
| 258 | struct termios sg; | 258 | struct termios sg; |
| 259 | 259 | ||
| 260 | sg.c_cflag = (sg.c_cflag & ~CBAUD) | B9600; | 260 | sg.c_cflag = B9600; |
| 261 | tcgetattr (input_fd, &sg); | 261 | tcgetattr (input_fd, &sg); |
| 262 | ospeed = cfgetospeed (&sg); | 262 | ospeed = cfgetospeed (&sg); |
| 263 | #else /* neither VMS nor TERMIOS */ | 263 | #else /* neither VMS nor TERMIOS */ |
| 264 | #ifdef HAVE_TERMIO | 264 | #ifdef HAVE_TERMIO |
| 265 | struct termio sg; | 265 | struct termio sg; |
| 266 | 266 | ||
| 267 | sg.c_cflag = (sg.c_cflag & ~CBAUD) | B9600; | 267 | sg.c_cflag = B9600; |
| 268 | #ifdef HAVE_TCATTR | 268 | #ifdef HAVE_TCATTR |
| 269 | tcgetattr (input_fd, &sg); | 269 | tcgetattr (input_fd, &sg); |
| 270 | #else | 270 | #else |