sa_handler is of type void (*)(int). Update new_handler to match. Signed-off by: Rosen Penev <ros...@gmail.com> --- uloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/uloop.c b/uloop.c index 26fef32..b42e601 100644 --- a/uloop.c +++ b/uloop.c @@ -437,7 +437,7 @@ static void uloop_install_handler(int signum, void (*handler)(int), struct sigac static void uloop_ignore_signal(int signum, bool ignore) { struct sigaction s; - void *new_handler = NULL; + void (*new_handler)(int) = NULL; sigaction(signum, NULL, &s); -- 2.9.3 _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev