From dc117daa28c87c6be5846a23f06e16c2b6ff6bc1 Mon Sep 17 00:00:00 2001 From: "mbuesch@freenet.de" Date: Wed, 13 Oct 2004 22:37:59 -0700 Subject: [PATCH] [PATCH] fix incompatible pointer type warning This patch fixes two warning: assignment from incompatible pointer type asmlinkage is the reason for the warning. We can simply cast to avoid it. It also fixes this warning: warning: implicit declaration of function `umask' --- udev.c | 2 +- udevd.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/udev.c b/udev.c index 974b9582..78da715f 100644 --- a/udev.c +++ b/udev.c @@ -153,7 +153,7 @@ int main(int argc, char *argv[], char *envp[]) } /* set signal handlers */ - act.sa_handler = sig_handler; + act.sa_handler = (void (*) (int))sig_handler; sigemptyset (&act.sa_mask); /* alarm must interrupt syscalls*/ diff --git a/udevd.c b/udevd.c index 81f4474a..380511d4 100644 --- a/udevd.c +++ b/udevd.c @@ -35,6 +35,7 @@ #include #include "klibc_fixups.h" #include +#include #include "list.h" #include "udev.h" @@ -457,7 +458,7 @@ int main(int argc, char *argv[]) /* set signal handlers */ - act.sa_handler = sig_handler; + act.sa_handler = (void (*) (int))sig_handler; sigemptyset(&act.sa_mask); act.sa_flags = SA_RESTART; sigaction(SIGINT, &act, NULL); -- 2.39.5