[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'
This commit is contained in:
mbuesch@freenet.de
2005-04-26 21:53:22 -07:00
committed by Greg KH
parent 7e89a569cc
commit dc117daa28
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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*/
+2 -1
View File
@@ -35,6 +35,7 @@
#include <fcntl.h>
#include "klibc_fixups.h"
#include <sys/sysinfo.h>
#include <sys/stat.h>
#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);