From d3939e6075f7706cdb24a1c356fa1dee4ac1e052 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 16 Jul 2011 20:02:40 +0000 Subject: [PATCH] fix --- src/transport/transport_ats.c | 7 +++++-- src/util/signal.c | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/transport/transport_ats.c b/src/transport/transport_ats.c index 06c4fa6aa..65398b3a0 100644 --- a/src/transport/transport_ats.c +++ b/src/transport/transport_ats.c @@ -461,11 +461,13 @@ static void _dummy2 () t = 0; } + + + /* * ATS Functions */ - /** * Initialize ATS * @param cfg configuration handle to retrieve configuration (to be removed) @@ -1009,7 +1011,8 @@ int ats_create_problem (struct ATS_Handle *ats, } -void ats_delete_problem (struct ATS_Handle * ats) +void +ats_delete_problem (struct ATS_Handle * ats) { #if !HAVE_LIBGLPK GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "ATS not active\n"); diff --git a/src/util/signal.c b/src/util/signal.c index 0fe4bfc96..2ace3911f 100644 --- a/src/util/signal.c +++ b/src/util/signal.c @@ -55,6 +55,7 @@ GNUNET_SIGNAL_handler_install (int signum, GNUNET_SIGNAL_Handler handler) ret->sig = signum; ret->method = handler; #ifndef MINGW + memset (&sig, 0, sizeof (sig)); sig.sa_handler = (void *) handler; sigemptyset (&sig.sa_mask); #ifdef SA_INTERRUPT -- 2.25.1