11597 pckt: cast between incompatible function types

Review Request #2250 - Created Aug. 21, 2019 and submitted

Information
Toomas Soome
illumos-gate
11597
fb54976...
Reviewers
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

  
Andrew Stormont
Yuri Pankov
Toomas Soome
Andrew Stormont
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...