aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_lookup_nick.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
commit29e6158507a0758192075ac6ece7ba8e75ddc49a (patch)
treeb91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/namestore/test_namestore_api_lookup_nick.c
parent5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff)
downloadgnunet-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_lookup_nick.c')
-rw-r--r--src/namestore/test_namestore_api_lookup_nick.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/namestore/test_namestore_api_lookup_nick.c b/src/namestore/test_namestore_api_lookup_nick.c
index 804b6fc42..d6d3945b7 100644
--- a/src/namestore/test_namestore_api_lookup_nick.c
+++ b/src/namestore/test_namestore_api_lookup_nick.c
@@ -79,7 +79,7 @@ cleanup ()
79 * @param tc scheduler context 79 * @param tc scheduler context
80 */ 80 */
81static void 81static void
82endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 82endbadly (void *cls)
83{ 83{
84 if (NULL != nsqe) 84 if (NULL != nsqe)
85 { 85 {
@@ -92,17 +92,19 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
92 92
93 93
94static void 94static void
95end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 95end (void *cls)
96{ 96{
97 cleanup (); 97 cleanup ();
98 res = 0; 98 res = 0;
99} 99}
100 100
101void lookup_it (void *cls, 101
102 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, 102static void
103 const char *label, 103lookup_it (void *cls,
104 unsigned int rd_count, 104 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone,
105 const struct GNUNET_GNSRECORD_Data *rd) 105 const char *label,
106 unsigned int rd_count,
107 const struct GNUNET_GNSRECORD_Data *rd)
106{ 108{
107 nsqe = NULL; 109 nsqe = NULL;
108 int c; 110 int c;