10538 sppp: cast between incompatible function types

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

Information
Toomas Soome
illumos-gate
10538
c6f2eb9...
Reviewers
general
../../common/io/ppp/sppp/sppp_mod.c:96: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 (*)())sppp_uwput, /* qi_putp */
  ^
../../common/io/ppp/sppp/sppp_mod.c:97:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())sppp_uwsrv, /* qi_srvp */
  ^
../../common/io/ppp/sppp/sppp_mod.c:106: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 (*)())sppp_lrput, /* qi_putp */
  ^
../../common/io/ppp/sppp/sppp_mod.c:107:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())sppp_lrsrv, /* qi_srvp */
  ^
../../common/io/ppp/sppp/sppp_mod.c:117:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (int (*)())sppp_lwsrv, /* qi_srvp */
  ^
cc1: all warnings being treated as errors

  
Andrew Stormont
Toomas Soome
Andy Fiddaman
Gergő Mihály Doma
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...