mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +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:
parent
7e89a569cc
commit
dc117daa28
2
udev.c
2
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*/
|
||||
|
3
udevd.c
3
udevd.c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user