]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/sighandler.c
Updated years in all README's.
[libucw.git] / ucw / sighandler.c
index cfd09c0b3a6aaf2993d63176f36a76be6ad595cf..9cc5f2aed26579b56ecb311884073827ba50260d 100644 (file)
@@ -53,12 +53,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;
 }