From fe9b7264d0e4547082ebc72f8d3791cfd259f545 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 22 Aug 2016 01:37:46 +0200 Subject: [PATCH] Remove pointer casting, not needed and forbidden in ISO C Signed-off-by: Joachim Nilsson --- uev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uev.c b/uev.c index ec3eebb..cff59f7 100644 --- a/uev.c +++ b/uev.c @@ -68,7 +68,7 @@ int uev_watcher_init(uev_ctx_t *ctx, uev_t *w, uev_type_t type, uev_cb_t *cb, vo w->type = type; w->active = 0; w->fd = fd; - w->cb = (void *)cb; + w->cb = cb; w->arg = arg; w->events = events;