diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-07-16 20:02:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-07-16 20:02:40 +0000 |
commit | d3939e6075f7706cdb24a1c356fa1dee4ac1e052 (patch) | |
tree | ac5b337285ae003b15c851a3cbc7df6fe4d41c4a /src | |
parent | cd8be50a9fd5a9bfa269e3e02d28ffc58c263375 (diff) | |
download | gnunet-d3939e6075f7706cdb24a1c356fa1dee4ac1e052.tar.gz gnunet-d3939e6075f7706cdb24a1c356fa1dee4ac1e052.zip |
fix
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/transport_ats.c | 7 | ||||
-rw-r--r-- | 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 () | |||
461 | t = 0; | 461 | t = 0; |
462 | } | 462 | } |
463 | 463 | ||
464 | |||
465 | |||
466 | |||
464 | /* | 467 | /* |
465 | * ATS Functions | 468 | * ATS Functions |
466 | */ | 469 | */ |
467 | 470 | ||
468 | |||
469 | /** | 471 | /** |
470 | * Initialize ATS | 472 | * Initialize ATS |
471 | * @param cfg configuration handle to retrieve configuration (to be removed) | 473 | * @param cfg configuration handle to retrieve configuration (to be removed) |
@@ -1009,7 +1011,8 @@ int ats_create_problem (struct ATS_Handle *ats, | |||
1009 | } | 1011 | } |
1010 | 1012 | ||
1011 | 1013 | ||
1012 | void ats_delete_problem (struct ATS_Handle * ats) | 1014 | void |
1015 | ats_delete_problem (struct ATS_Handle * ats) | ||
1013 | { | 1016 | { |
1014 | #if !HAVE_LIBGLPK | 1017 | #if !HAVE_LIBGLPK |
1015 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "ATS not active\n"); | 1018 | 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) | |||
55 | ret->sig = signum; | 55 | ret->sig = signum; |
56 | ret->method = handler; | 56 | ret->method = handler; |
57 | #ifndef MINGW | 57 | #ifndef MINGW |
58 | memset (&sig, 0, sizeof (sig)); | ||
58 | sig.sa_handler = (void *) handler; | 59 | sig.sa_handler = (void *) handler; |
59 | sigemptyset (&sig.sa_mask); | 60 | sigemptyset (&sig.sa_mask); |
60 | #ifdef SA_INTERRUPT | 61 | #ifdef SA_INTERRUPT |