11597 pckt: cast between incompatible function types

Review Request #2250 — Created Aug. 21, 2019 and submitted — Latest diff uploaded

tsoome
illumos-gate
11597
fb54976...
general
../../common/io/pckt.c:145: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 (*)())pcktrput,
  ^
../../common/io/pckt.c:146:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())pcktrsrv,
  ^
../../common/io/pckt.c:155: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 (*)())pcktwput,
  ^
cc1: all warnings being treated as errors


Loading...