]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/sighandler.c
Sorter debugging tools can be compiled again
[libucw.git] / ucw / sighandler.c
index cfd09c0b3a6aaf2993d63176f36a76be6ad595cf..2182e0cf0c8fa2165fb9116133827e516776164c 100644 (file)
@@ -5,8 +5,9 @@
  *     (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>
@@ -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;
 }