From 00a7f964e0696b80455fa8e0d217f29762f490c1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 15 Sep 2011 12:47:43 +0000 Subject: dbg support: --- src/nat/gnunet-nat-server.c | 1 - src/nat/nat.c | 3 +-- src/nat/nat.h | 2 ++ src/nat/nat_mini.c | 1 - src/nat/nat_test.c | 3 ++- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/nat') diff --git a/src/nat/gnunet-nat-server.c b/src/nat/gnunet-nat-server.c index bb637235d..4b7e31ef8 100644 --- a/src/nat/gnunet-nat-server.c +++ b/src/nat/gnunet-nat-server.c @@ -29,7 +29,6 @@ #include "gnunet_protocols.h" #include "nat.h" -#define DEBUG_NAT GNUNET_NO /** * Our server. diff --git a/src/nat/nat.c b/src/nat/nat.c index 0eadf5337..fc20fe54d 100644 --- a/src/nat/nat.c +++ b/src/nat/nat.c @@ -29,8 +29,7 @@ #include "gnunet_util_lib.h" #include "gnunet_resolver_service.h" #include "gnunet_nat_lib.h" - -#define DEBUG_NAT GNUNET_NO +#include "nat.h" /** * How often do we scan for changes in our IP address from our local diff --git a/src/nat/nat.h b/src/nat/nat.h index bb13e5274..dbb5263d4 100644 --- a/src/nat/nat.h +++ b/src/nat/nat.h @@ -28,6 +28,8 @@ #define NAT_H #include "gnunet_util_lib.h" +#define DEBUG_NAT GNUNET_NO + /** * Request to test NAT traversal. */ diff --git a/src/nat/nat_mini.c b/src/nat/nat_mini.c index 52a4e86b0..ccdc83265 100644 --- a/src/nat/nat_mini.c +++ b/src/nat/nat_mini.c @@ -28,7 +28,6 @@ #include "gnunet_nat_lib.h" #include "nat.h" -#define DEBUG_NAT GNUNET_NO /** * How long do we give upnpc to create a mapping? diff --git a/src/nat/nat_test.c b/src/nat/nat_test.c index 74bb758dd..a524831e4 100644 --- a/src/nat/nat_test.c +++ b/src/nat/nat_test.c @@ -252,7 +252,8 @@ do_read (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) #if DEBUG_NAT else GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, - "nat" "Received data mismatches expected value\n"); + "nat", + "Received data mismatches expected value\n"); #endif } #if DEBUG_NAT -- cgit v1.2.3