fix
authorChristian Grothoff <christian@grothoff.org>
Sat, 16 Jul 2011 20:02:40 +0000 (20:02 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 16 Jul 2011 20:02:40 +0000 (20:02 +0000)
src/transport/transport_ats.c
src/util/signal.c

index 06c4fa6aa4817a7b9eb8b68123f783d3ca48b5e7..65398b3a0565e0659a829eba853747986ac06a8b 100644 (file)
@@ -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");
index 0fe4bfc96e6a1cac3ea8f505b0072090ec4c4138..2ace3911f7a87bccf33df27f16e97f37969284dd 100644 (file)
@@ -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