10487 nca: cast between incompatible function types

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

Information
Toomas Soome
illumos-gate
10487
0f3a5ee...
Reviewers
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

  
Gergő Mihály Doma
C Fraire
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...