diff options
Diffstat (limited to 'src/nat/test_nat_test.c')
-rw-r--r-- | src/nat/test_nat_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nat/test_nat_test.c b/src/nat/test_nat_test.c index d32015b56..a5e6ba209 100644 --- a/src/nat/test_nat_test.c +++ b/src/nat/test_nat_test.c | |||
@@ -36,7 +36,7 @@ static int ret = 1; | |||
36 | 36 | ||
37 | static struct GNUNET_NAT_Test *tst; | 37 | static struct GNUNET_NAT_Test *tst; |
38 | 38 | ||
39 | static GNUNET_SCHEDULER_TaskIdentifier tsk; | 39 | static struct GNUNET_SCHEDULER_Task * tsk; |
40 | 40 | ||
41 | 41 | ||
42 | static void | 42 | static void |
@@ -54,7 +54,7 @@ report_result (void *cls, | |||
54 | GNUNET_NAT_test_stop (tst); | 54 | GNUNET_NAT_test_stop (tst); |
55 | tst = NULL; | 55 | tst = NULL; |
56 | GNUNET_SCHEDULER_cancel (tsk); | 56 | GNUNET_SCHEDULER_cancel (tsk); |
57 | tsk = GNUNET_SCHEDULER_NO_TASK; | 57 | tsk = NULL; |
58 | } | 58 | } |
59 | 59 | ||
60 | 60 | ||
@@ -62,7 +62,7 @@ static void | |||
62 | failed_timeout (void *cls, | 62 | failed_timeout (void *cls, |
63 | const struct GNUNET_SCHEDULER_TaskContext *tc) | 63 | const struct GNUNET_SCHEDULER_TaskContext *tc) |
64 | { | 64 | { |
65 | tsk = GNUNET_SCHEDULER_NO_TASK; | 65 | tsk = NULL; |
66 | fprintf (stderr, | 66 | fprintf (stderr, |
67 | "NAT test failed to terminate on timeout\n"); | 67 | "NAT test failed to terminate on timeout\n"); |
68 | ret = 2; | 68 | ret = 2; |