1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 20:25:38 +03:00

[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 2004-10-13 22:37:59 -07:00 committed by Greg KH
parent 7e89a569cc
commit dc117daa28
2 changed files with 3 additions and 2 deletions

2
udev.c
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*/

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