timer: fix callback declaration inconsistency