Print this page
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ttcompat.c
          +++ new/usr/src/uts/common/io/ttcompat.c
↓ open down ↓ 79 lines elided ↑ open up ↑
  80   80   * Module linkage information for the kernel.
  81   81   */
  82   82  
  83   83  static struct modlstrmod modlstrmod = {
  84   84          &mod_strmodops,
  85   85          "alt ioctl calls",
  86   86          &fsw
  87   87  };
  88   88  
  89   89  static struct modlinkage modlinkage = {
  90      -        MODREV_1, &modlstrmod, NULL
       90 +        MODREV_1, { &modlstrmod, NULL }
  91   91  };
  92   92  
  93   93  int
  94   94  _init(void)
  95   95  {
  96   96          return (mod_install(&modlinkage));
  97   97  }
  98   98  
  99   99  int
 100  100  _fini(void)
↓ open down ↓ 58 lines elided ↑ open up ↑
 159  159  /*
 160  160   * This is the termios structure that is used to reset terminal settings
 161  161   * when the underlying device is an instance of zcons.  It came from
 162  162   * cmd/init/init.c and should be kept in-sync with dflt_termios found therein.
 163  163   */
 164  164  static const struct termios base_termios = {
 165  165          BRKINT|ICRNL|IXON|IMAXBEL,                              /* iflag */
 166  166          OPOST|ONLCR|TAB3,                                       /* oflag */
 167  167          CS8|CREAD|B9600,                                        /* cflag */
 168  168          ISIG|ICANON|ECHO|ECHOE|ECHOK|ECHOCTL|ECHOKE|IEXTEN,     /* lflag */
 169      -        CINTR, CQUIT, CERASE, CKILL, CEOF, 0, 0, 0, 0, 0, 0, 0, /* c_cc vals */
 170      -        0, 0, 0, 0, 0, 0, 0
      169 +        {   CINTR, CQUIT, CERASE, CKILL, CEOF,                  /* c_cc vals */
      170 +            0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
 171  171  };
 172  172  
 173  173  
 174  174  static void ttcompat_do_ioctl(ttcompat_state_t *, queue_t *, mblk_t *);
 175  175  static void ttcompat_ioctl_ack(queue_t *, mblk_t *);
 176  176  static void ttcopyout(queue_t *, mblk_t *);
 177  177  static void ttcompat_ioctl_nak(queue_t *, mblk_t *);
 178  178  static void from_compat(compat_state_t *, struct termios *);
 179  179  static void to_compat(struct termios *, compat_state_t *);
 180  180  
↓ open down ↓ 1271 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX