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/peerstore/gnunet-peerstore.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/peerstore/gnunet-peerstore.c')
-rw-r--r-- | src/peerstore/gnunet-peerstore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/peerstore/gnunet-peerstore.c b/src/peerstore/gnunet-peerstore.c index e274a1751..68ae1746f 100644 --- a/src/peerstore/gnunet-peerstore.c +++ b/src/peerstore/gnunet-peerstore.c | |||
@@ -32,16 +32,16 @@ static int ret; | |||
32 | /* | 32 | /* |
33 | * Handle to PEERSTORE service | 33 | * Handle to PEERSTORE service |
34 | */ | 34 | */ |
35 | struct GNUNET_PEERSTORE_Handle *peerstore_handle; | 35 | static struct GNUNET_PEERSTORE_Handle *peerstore_handle; |
36 | |||
36 | 37 | ||
37 | /** | 38 | /** |
38 | * Run on shutdown | 39 | * Run on shutdown |
39 | * | 40 | * |
40 | * @param cls unused | 41 | * @param cls unused |
41 | * @param tc scheduler context | ||
42 | */ | 42 | */ |
43 | static void | 43 | static void |
44 | shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 44 | shutdown_task (void *cls) |
45 | { | 45 | { |
46 | if (NULL != peerstore_handle) | 46 | if (NULL != peerstore_handle) |
47 | { | 47 | { |