diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-05-05 02:39:16 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-05-05 02:39:16 +0200 |
commit | 619b97ff2b9e29c79dedd9aff425c7a11764c300 (patch) | |
tree | 0440449feab24a17772dc2bb9fad4265bba766bc /udev/test-udev.c | |
parent | e3196993f1f7fdd9fb7fbf4eeb397080554ae920 (diff) |
remove asmlinkage
Diffstat (limited to 'udev/test-udev.c')
-rw-r--r-- | udev/test-udev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/udev/test-udev.c b/udev/test-udev.c index ff1c353e66..6ec91c174a 100644 --- a/udev/test-udev.c +++ b/udev/test-udev.c @@ -30,14 +30,14 @@ #include "udev.h" -static void asmlinkage sig_handler(int signum) +static void sig_handler(int signum) { switch (signum) { case SIGALRM: - exit(1); + _exit(1); case SIGINT: case SIGTERM: - exit(20 + signum); + _exit(20 + signum); } } @@ -62,7 +62,7 @@ int main(int argc, char *argv[]) /* set signal handlers */ memset(&act, 0x00, sizeof(act)); - act.sa_handler = (void (*)(int)) sig_handler; + act.sa_handler = sig_handler; sigemptyset (&act.sa_mask); act.sa_flags = 0; sigaction(SIGALRM, &act, NULL); |