11601 telmod: cast between incompatible function types

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

Information
Toomas Soome
illumos-gate
11601
b533b7d...
Reviewers
general
../../common/io/telmod.c:150: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 (*)())telmodrput,
  ^
../../common/io/telmod.c:151:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())telmodrsrv,
  ^
../../common/io/telmod.c:160: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 (*)())telmodwput,
  ^
../../common/io/telmod.c:161:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())telmodwsrv,
  ^
cc1: all warnings being treated as errors

  
Andrew Stormont
Robert Mustacchi
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...