Remove ttymode_t typedef.
authorayin <ayin>
Sat, 29 Dec 2007 12:36:56 +0000 (12:36 +0000)
committerayin <ayin>
Sat, 29 Dec 2007 12:36:56 +0000 (12:36 +0000)
src/init.C
src/rxvt.h

index ac0e181f55758aedc55d658d7211e712ac96429f..579bdf682551fcba2896ae74834af06afa502fe6 100644 (file)
@@ -1139,7 +1139,7 @@ rxvt_term::create_windows (int argc, const char *const *argv)
  *                            GET TTY CURRENT STATE                          *
  * ------------------------------------------------------------------------- */
 void
-rxvt_get_ttymode (ttymode_t *tio, int erase)
+rxvt_get_ttymode (struct termios *tio, int erase)
 {
   /*
    * standard System V termios interface
@@ -1148,7 +1148,7 @@ rxvt_get_ttymode (ttymode_t *tio, int erase)
     {
       // return error - use system defaults,
       // where possible, and zero elsewhere
-      memset (tio, 0, sizeof (ttymode_t));
+      memset (tio, 0, sizeof (struct termios));
 
       tio->c_cc[VINTR] = CINTR;
       tio->c_cc[VQUIT] = CQUIT;
index 4dd311cf80f0e74d3101da7134e682579d6a61f0..066fc910823281f35609f48024bdcfd2c11d4519 100644 (file)
@@ -114,7 +114,6 @@ typedef char *XPointer;
 #endif
 
 #include <termios.h>
-typedef struct termios ttymode_t;
 
 #include "background.h"
 
@@ -1073,7 +1072,7 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen {
 /* ---------- */
   struct mouse_event MEvent;
   XComposeStatus  compose;
-  ttymode_t       tio;
+  struct termios  tio;
   row_col_t       oldcursor;
 #ifdef HAVE_BG_PIXMAP
   bgPixmap_t      bgPixmap;