* (c) 2006 Martin Mares <mj@ucw.cz>
*/
-#include "ucw/lib.h"
-#include "ucw/threads.h"
+#include <ucw/lib.h>
+#include <ucw/threads.h>
+#include <ucw/sighandler.h>
#include <stdlib.h>
#include <string.h>
}
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;
}