10072 ip: timeout takes void (*)(void *) as callback

Review Request #1325 - Created Dec. 18, 2018 and submitted

Information
Toomas Soome
illumos-gate
10072
60b020f...
Reviewers
general
../../common/inet/mi.c: In function 'mi_timer':
../../common/inet/mi.c:1127:26: error: cast between incompatible function types from 'int (*)(struct mtb_s *)' to 'void (*)()' [-Werror=cast-function-type]
   mtb->mtb_tid = timeout((pfv_t)mi_timer_fire, mtb, tim);
                          ^
../../common/inet/mi.c: In function 'mi_timer_move':
../../common/inet/mi.c:1256:26: error: cast between incompatible function types from 'int (*)(struct mtb_s *)' to 'void (*)()' [-Werror=cast-function-type]
   mtb->mtb_tid = timeout((pfv_t)mi_timer_fire, mtb, tim);
                          ^
../../common/inet/mi.c: In function 'mi_timer_valid':
../../common/inet/mi.c:1343:27: error: cast between incompatible function types from 'int (*)(struct mtb_s *)' to 'void (*)()' [-Werror=cast-function-type]
    mtb->mtb_tid = timeout((pfv_t)mi_timer_fire,
                           ^
cc1: all warnings being treated as errors

  
C Fraire
Norm Jacobs
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...