[LEDE-DEV] [PATCH] uloop: Fix new_handler type

Rosen Penev rosenp at gmail.com
Tue Mar 21 18:01:43 PDT 2017


sa_handler is of type void (*)(int). Update new_handler to match.

Signed-off by: Rosen Penev <rosenp at 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




More information about the Lede-dev mailing list