diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
commit | 29e6158507a0758192075ac6ece7ba8e75ddc49a (patch) | |
tree | b91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/namestore/test_namestore_api_zone_to_name.c | |
parent | 5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff) | |
download | gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.tar.gz gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.zip |
small API change: do no longer pass rarely needed GNUNET_SCHEDULER_TaskContext to all scheduler tasks; instead, allow the relatively few tasks that need it to obtain the context via GNUNET_SCHEDULER_get_task_context()
Diffstat (limited to 'src/namestore/test_namestore_api_zone_to_name.c')
-rw-r--r-- | src/namestore/test_namestore_api_zone_to_name.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_zone_to_name.c b/src/namestore/test_namestore_api_zone_to_name.c index 348b9178b..12bc870b4 100644 --- a/src/namestore/test_namestore_api_zone_to_name.c +++ b/src/namestore/test_namestore_api_zone_to_name.c | |||
@@ -63,10 +63,9 @@ static char *directory; | |||
63 | * Re-establish the connection to the service. | 63 | * Re-establish the connection to the service. |
64 | * | 64 | * |
65 | * @param cls handle to use to re-connect. | 65 | * @param cls handle to use to re-connect. |
66 | * @param tc scheduler context | ||
67 | */ | 66 | */ |
68 | static void | 67 | static void |
69 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 68 | endbadly (void *cls) |
70 | { | 69 | { |
71 | if (nsh != NULL) | 70 | if (nsh != NULL) |
72 | GNUNET_NAMESTORE_disconnect (nsh); | 71 | GNUNET_NAMESTORE_disconnect (nsh); |
@@ -79,7 +78,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
79 | 78 | ||
80 | 79 | ||
81 | static void | 80 | static void |
82 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 81 | end (void *cls) |
83 | { | 82 | { |
84 | if (endbadly_task != NULL) | 83 | if (endbadly_task != NULL) |
85 | { | 84 | { |