10490 ptm: cast between incompatible function types

Review Request #1543 — Created March 2, 2019 and submitted

tsoome
illumos-gate
10490
db25025...
general
../../common/io/ptm.c:168:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)()) ptmrsrv,
  ^
../../common/io/ptm.c:177:2: error: cast between incompatible function types from 'void (*)(queue_t *, mblk_t *)' {aka 'void (*)(struct queue *, struct msgb *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)()) ptmwput,
  ^
../../common/io/ptm.c:178:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)()) ptmwsrv,
  ^
cc1: all warnings being treated as errors


  • 0
  • 0
  • 2
  • 0
  • 2
Description From Last Updated
domag02
  1. 
      
  2. usr/src/uts/common/io/ptm.c (Diff revision 1)
     
     
    Whitespace nits.
  3. usr/src/uts/common/io/ptm.c (Diff revision 1)
     
     
    Space followed by tab.
  4. 
      
tsoome
citrus
  1. Ship It!
  2. 
      
seeemef@mac.com
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...