diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-01-15 16:36:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-01-15 16:36:30 +0000 |
commit | 2ea6ea66581947fce7820357f9a260896ffd4199 (patch) | |
tree | 18f2cb95bdc77b2978cc8e53de10a186aa37ab72 /src/util/test_service.c | |
parent | a257f028184102b04995c6774f065200919a3dff (diff) | |
download | gnunet-2ea6ea66581947fce7820357f9a260896ffd4199.tar.gz gnunet-2ea6ea66581947fce7820357f9a260896ffd4199.zip |
making code work better with dual-stack, preparing for triple-stack
Diffstat (limited to 'src/util/test_service.c')
-rw-r--r-- | src/util/test_service.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/test_service.c b/src/util/test_service.c index dce66d398..a40630c64 100644 --- a/src/util/test_service.c +++ b/src/util/test_service.c | |||
@@ -76,15 +76,16 @@ build_msg (void *cls, size_t size, void *buf) | |||
76 | return sizeof (struct GNUNET_MessageHeader); | 76 | return sizeof (struct GNUNET_MessageHeader); |
77 | } | 77 | } |
78 | 78 | ||
79 | |||
79 | static void | 80 | static void |
80 | ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 81 | ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
81 | { | 82 | { |
82 | const struct GNUNET_CONFIGURATION_Handle *cfg = cls; | 83 | const struct GNUNET_CONFIGURATION_Handle *cfg = cls; |
83 | struct GNUNET_CLIENT_Connection *client; | 84 | struct GNUNET_CLIENT_Connection *client; |
84 | 85 | ||
86 | GNUNET_assert (0 != (tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE)); | ||
85 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Service confirmed running\n"); | 87 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Service confirmed running\n"); |
86 | sched = tc->sched; | 88 | sched = tc->sched; |
87 | GNUNET_assert (0 != (tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE)); | ||
88 | client = GNUNET_CLIENT_connect (tc->sched, "test_service", cfg); | 89 | client = GNUNET_CLIENT_connect (tc->sched, "test_service", cfg); |
89 | GNUNET_assert (client != NULL); | 90 | GNUNET_assert (client != NULL); |
90 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 91 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |