10542 spdsock: cast between incompatible function types

Review Request #1560 - Created March 12, 2019 and submitted

Information
Toomas Soome
illumos-gate
10542
da57772...
Reviewers
general
../../common/inet/ip/spdsock.c:174:8: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  NULL, (pfi_t)spdsock_rsrv, spdsock_open, spdsock_close,
        ^
../../common/inet/ip/spdsock.c:179: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)spdsock_wput, (pfi_t)spdsock_wsrv, NULL, NULL, NULL, &info
  ^
../../common/inet/ip/spdsock.c:179:23: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (pfi_t)spdsock_wput, (pfi_t)spdsock_wsrv, NULL, NULL, NULL, &info
                       ^
cc1: all warnings being treated as errors

  
Robert Mustacchi
Andy Fiddaman
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...