10487 nca: cast between incompatible function types

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

tsoome
illumos-gate
10487
0f3a5ee...
general
../../common/inet/nca/ncaddi.c:144: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]
  (pfi_t)nca_rput, NULL, nca_open, nca_close, NULL, &info
  ^
../../common/inet/nca/ncaddi.c:148: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]
  (pfi_t)nca_wput, NULL, nca_open, nca_close, NULL, &info
  ^
cc1: all warnings being treated as errors


domag02
  1. Ship It!
  2. 
      
seeemef@mac.com
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...