From 6053bf5bbfda755228cb9fe4e9a1e768f555a286 Mon Sep 17 00:00:00 2001 From: mjolk <2mjolk@gmail.com> Date: Tue, 2 Jul 2019 18:41:10 +0200 Subject: [PATCH] fix set cb macro --- timeout.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/timeout.h b/timeout.h index 3ef76e9..cdbac3d 100644 --- a/timeout.h +++ b/timeout.h @@ -107,9 +107,9 @@ struct timeout_cb { #define TIMEOUT_INITIALIZER(flags) { (flags) } -#define timeout_setcb(to, fn, arg) do { \ - (to)->callback.fn = (fn); \ - (to)->callback.arg = (arg); \ +#define timeout_setcb(to, f, a) do { \ + (to)->callback.fn = (f); \ + (to)->callback.arg = (a); \ } while (0) struct timeout {