[LEDE-DEV] uloop: Fix new_handler type

Submitted by Rosen Penev on March 22, 2017, 1:01 a.m.

Details

Message ID 20170322010143.20333-1-rosenp@gmail.com
State New
Delegated to: Felix Fietkau
Headers show

Commit Message

Rosen Penev March 22, 2017, 1:01 a.m.
sa_handler is of type void (*)(int). Update new_handler to match.

Signed-off by: Rosen Penev <rosenp@gmail.com>
---
 uloop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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);