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

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

tsoome
illumos-gate
10072
60b020f...
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


seeemef@mac.com
  1. Ah took me a while to learn which timeout() was involved: TIMEOUT(9F). LGTM.

  2. 
      
norm
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...