10833 sppptun: cast between incompatible function types

Review Request #1775 - Created April 20, 2019 and submitted

Information
Toomas Soome
illumos-gate
10833
367bc66...
Reviewers
general
../../common/io/ppp/sppptun/sppptun.c:174: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 (*)())sppptun_urput, /* qi_putp */
  ^
../../common/io/ppp/sppptun/sppptun.c:184: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 (*)())sppptun_uwput, /* qi_putp */
  ^
../../common/io/ppp/sppptun/sppptun.c:194: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 (*)())sppptun_lrput, /* qi_putp */
  ^
../../common/io/ppp/sppptun/sppptun.c:204: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 (*)())sppptun_lwput, /* qi_putp */
  ^
cc1: all warnings being treated as errors

  

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Gergő Mihály Doma
Toomas Soome
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...