From: Christian Grothoff Date: Sat, 16 Jul 2011 20:02:40 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~17804 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d3939e6075f7706cdb24a1c356fa1dee4ac1e052;p=oweals%2Fgnunet.git fix --- 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