10486 keysock: cast between incompatible function types

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

Information
Toomas Soome
illumos-gate
10486
b3e334f...
Reviewers
general
../../common/inet/ip/keysock.c:162: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)keysock_rput, (pfi_t)keysock_rsrv, keysock_open, keysock_close,
  ^
../../common/inet/ip/keysock.c:162:23: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (pfi_t)keysock_rput, (pfi_t)keysock_rsrv, keysock_open, keysock_close,
                       ^
../../common/inet/ip/keysock.c:167: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)keysock_wput, NULL, NULL, NULL, NULL, &info
  ^
cc1: all warnings being treated as errors

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

Status: Closed (submitted)

Loading...