# HG changeset patch # User Dan Nicolaescu # Date 1286718262 25200 # Node ID 8aed62727bef83a6a2e86df60baff16f12d2788e # Parent 00157498ec823d4ab04927b2d9b4cff754c652be Small sysdep.c cleanups. * src/sysdep.c (LPASS8): Remove, unused. (emacs_ospeed): Change from being a global to a local in the only user: init_baud_rate. diff -r 00157498ec82 -r 8aed62727bef src/ChangeLog --- a/src/ChangeLog Sun Oct 10 09:39:03 2010 -0400 +++ b/src/ChangeLog Sun Oct 10 06:44:22 2010 -0700 @@ -1,3 +1,9 @@ +2010-10-10 Dan Nicolaescu + + * sysdep.c (LPASS8): Remove, unused. + (emacs_ospeed): Change from being a global to a local in the only + user: init_baud_rate. + 2010-10-09 Lars Magne Ingebrigtsen * gnutls.c (syms_of_gnutls): All the bootprops are keywords. diff -r 00157498ec82 -r 8aed62727bef src/sysdep.c --- a/src/sysdep.c Sun Oct 10 09:39:03 2010 -0400 +++ b/src/sysdep.c Sun Oct 10 06:44:22 2010 -0700 @@ -123,19 +123,12 @@ #endif #endif -/* LPASS8 is new in 4.3, and makes cbreak mode provide all 8 bits. */ -#ifndef LPASS8 -#define LPASS8 0 -#endif - static const int baud_convert[] = { 0, 50, 75, 110, 135, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600, 19200, 38400 }; -int emacs_ospeed; - void croak (char *) NO_RETURN; /* Temporary used by `sigblock' when defined in terms of signprocmask. */ @@ -275,6 +268,8 @@ void init_baud_rate (int fd) { + int emacs_ospeed; + if (noninteractive) emacs_ospeed = 0; else