X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fsighandler.c;h=2182e0cf0c8fa2165fb9116133827e516776164c;hb=e5d79225e3eef5c39be7f8e5006e331ed0f76f2f;hp=3f7daf2213496bb2be0f12bad93709166e25cbec;hpb=031256ad2e123eec58521f8e3eb9496c197641d2;p=libucw.git diff --git a/ucw/sighandler.c b/ucw/sighandler.c index 3f7daf22..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 @@ -52,13 +53,13 @@ unhandle_signal(int signum) ucwlib_unlock(); } -sh_sighandler_t -set_signal_handler(int signum, sh_sighandler_t new) +ucw_sighandler_t +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(sh_sighandler_t)); - sh_sighandler_t old = ctx->signal_handlers[signum]; - ctx->signal_handlers[signum] = new; + ctx->signal_handlers = xmalloc_zero(NSIG * sizeof(ucw_sighandler_t)); + ucw_sighandler_t old = ctx->signal_handlers[signum]; + ctx->signal_handlers[signum] = newh; return old; }