summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
authormbuesch@freenet.de <mbuesch@freenet.de>2004-10-13 22:37:59 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:53:22 -0700
commitdc117daa28c87c6be5846a23f06e16c2b6ff6bc1 (patch)
tree0a8779826b067806fcc379ab2d4c26cc48e001ae /udev.c
parent7e89a569cc4db0c1482662dc4df5f60df7aef3ff (diff)
[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'
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev.c b/udev.c
index 974b9582d0..78da715fec 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*/