diff options
Diffstat (limited to 'src/nse/test_nse_api.c')
-rw-r--r-- | src/nse/test_nse_api.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/nse/test_nse_api.c b/src/nse/test_nse_api.c index f6cde3f..f99cb3b 100644 --- a/src/nse/test_nse_api.c +++ b/src/nse/test_nse_api.c @@ -29,8 +29,6 @@ #include "gnunet_scheduler_lib.h" #include "gnunet_nse_service.h" -#define DEBUG_NSE GNUNET_YES - #define START_ARM GNUNET_YES static struct GNUNET_NSE_Handle *h; @@ -55,7 +53,7 @@ stop_arm (struct PeerContext *p) if (0 != GNUNET_OS_process_kill (p->arm_proc, SIGTERM)) GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); GNUNET_OS_process_wait (p->arm_proc); - GNUNET_OS_process_close (p->arm_proc); + GNUNET_OS_process_destroy (p->arm_proc); p->arm_proc = NULL; #endif GNUNET_CONFIGURATION_destroy (p->cfg); @@ -147,11 +145,7 @@ check () char *const argv[] = { "test-nse-api", "-c", "test_nse.conf", -#if DEBUG_NSE - "-L", "DEBUG", -#else "-L", "WARNING", -#endif NULL }; struct GNUNET_GETOPT_CommandLineOption options[] = { @@ -173,14 +167,9 @@ main (int argc, char *argv[]) int ret; GNUNET_log_setup ("test_nse_api", -#if DEBUG_NSE - "DEBUG", -#else "WARNING", -#endif NULL); ret = check (); - return ret; } |