From: Lionel Sambuc Date: Fri, 19 Apr 2013 07:54:09 +0000 (+0200) Subject: ABI Break: aligning struct termios X-Git-Tag: v3.3.0~632 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=refs%2Fchanges%2F26%2F926%2F2;p=minix.git ABI Break: aligning struct termios Change-Id: I0109188fffbb166a5036e324a4a75b2491c39fb3 --- diff --git a/drivers/tty/tty.c b/drivers/tty/tty.c index 8c28b0927..bc532cc04 100644 --- a/drivers/tty/tty.c +++ b/drivers/tty/tty.c @@ -130,12 +130,12 @@ static void reset_color(tty_t *tp); /* Default attributes. */ static struct termios termios_defaults = { - TINPUT_DEF, TOUTPUT_DEF, TCTRL_DEF, TLOCAL_DEF, TSPEED_DEF, TSPEED_DEF, + TINPUT_DEF, TOUTPUT_DEF, TCTRL_DEF, TLOCAL_DEF, { TEOF_DEF, TEOL_DEF, TERASE_DEF, TINTR_DEF, TKILL_DEF, TMIN_DEF, TQUIT_DEF, TTIME_DEF, TSUSP_DEF, TSTART_DEF, TSTOP_DEF, TREPRINT_DEF, TLNEXT_DEF, TDISCARD_DEF, - }, + }, TSPEED_DEF, TSPEED_DEF, }; static struct winsize winsize_defaults; /* = all zeroes */ diff --git a/include/minix/termios.h b/include/minix/termios.h index ec9bc259a..d4f58df29 100644 --- a/include/minix/termios.h +++ b/include/minix/termios.h @@ -3,7 +3,7 @@ #ifndef _TERMIOS_H #define _TERMIOS_H -typedef unsigned short tcflag_t; +typedef unsigned int tcflag_t; typedef unsigned char cc_t; typedef unsigned int speed_t; @@ -16,9 +16,9 @@ struct termios { tcflag_t c_oflag; /* output modes */ tcflag_t c_cflag; /* control modes */ tcflag_t c_lflag; /* local modes */ + cc_t c_cc[NCCS]; /* control characters */ speed_t c_ispeed; /* input speed */ speed_t c_ospeed; /* output speed */ - cc_t c_cc[NCCS]; /* control characters */ }; /* Values for termios c_iflag bit map. POSIX Table 7-2. */