Print this page
10887 Missing void cast in wcuwsrv()

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/wscons.c
          +++ new/usr/src/uts/common/io/wscons.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 1987, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright 2019 Toomas Soome <tsoome@me.com>
       25 + * Copyright 2019 Joyent, Inc.
  25   26   */
  26   27  
  27   28  /*
  28   29   * "Workstation console" multiplexor driver for Sun.
  29   30   *
  30   31   * Sends output to the primary frame buffer using the PROM monitor;
  31   32   * gets input from a stream linked below us that is the "keyboard
  32   33   * driver", below which is linked the primary keyboard.
  33   34   */
  34   35  
↓ open down ↓ 469 lines elided ↑ open up ↑
 504  505          ssize_t cc;
 505  506  
 506  507          while ((mp = getq(q)) != NULL) {
 507  508                  /*
 508  509                   * If we're waiting for something to happen (delay timeout to
 509  510                   * expire, current transmission to finish, output to be
 510  511                   * restarted, output to finish draining), don't grab anything
 511  512                   * new.
 512  513                   */
 513  514                  if (pvc->vc_flags & (WCS_DELAY|WCS_BUSY|WCS_STOPPED)) {
 514      -                        putbq(q, mp);
      515 +                        (void) putbq(q, mp);
 515  516                          return (0);
 516  517                  }
 517  518  
 518  519                  switch (mp->b_datap->db_type) {
 519  520                  default:        /* drop unknown type */
 520  521                          freemsg(mp);
 521  522                          continue;
 522  523  
 523  524                  case M_IOCTL:
 524  525                          wcioctl(q, mp);
↓ open down ↓ 1058 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX