X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fsighandler.c;h=2182e0cf0c8fa2165fb9116133827e516776164c;hb=0204a4ff10292047628c754b0d088a742b511bb3;hp=cfd09c0b3a6aaf2993d63176f36a76be6ad595cf;hpb=e8060fa4647c5c4ccf07efb91a35f65c543dfc4f;p=libucw.git diff --git a/ucw/sighandler.c b/ucw/sighandler.c index cfd09c0b..2182e0cf 100644 --- a/ucw/sighandler.c +++ b/ucw/sighandler.c @@ -5,8 +5,9 @@ * (c) 2006 Martin Mares */ -#include "ucw/lib.h" -#include "ucw/threads.h" +#include +#include +#include #include #include @@ -53,12 +54,12 @@ unhandle_signal(int signum) } ucw_sighandler_t -set_signal_handler(int signum, ucw_sighandler_t new) +set_signal_handler(int signum, ucw_sighandler_t newh) { struct ucwlib_context *ctx = ucwlib_thread_context(); if (!ctx->signal_handlers) ctx->signal_handlers = xmalloc_zero(NSIG * sizeof(ucw_sighandler_t)); ucw_sighandler_t old = ctx->signal_handlers[signum]; - ctx->signal_handlers[signum] = new; + ctx->signal_handlers[signum] = newh; return old; }