diff options
author | jospaeth <spaethj@in.tum.de> | 2020-09-02 21:36:05 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-09-02 21:36:05 +0200 |
commit | 3fd3f3fbc9c2f83b3505d4aafe026817944e73c1 (patch) | |
tree | a91a4b93714cd7361b8ec70488809dfd879a1661 /src/escrow/plugin_escrow_plaintext.c | |
parent | e431696955001e45836ab5d2eeda6e49120049e1 (diff) | |
download | gnunet-3fd3f3fbc9c2f83b3505d4aafe026817944e73c1.tar.gz gnunet-3fd3f3fbc9c2f83b3505d4aafe026817944e73c1.zip |
minor improvements
add static/const
Diffstat (limited to 'src/escrow/plugin_escrow_plaintext.c')
-rw-r--r-- | src/escrow/plugin_escrow_plaintext.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/escrow/plugin_escrow_plaintext.c b/src/escrow/plugin_escrow_plaintext.c index 9eb1fb120..623504a6b 100644 --- a/src/escrow/plugin_escrow_plaintext.c +++ b/src/escrow/plugin_escrow_plaintext.c | |||
@@ -86,14 +86,14 @@ static struct GNUNET_IDENTITY_Handle *identity_handle; | |||
86 | /** | 86 | /** |
87 | * Handle for the plugin instance | 87 | * Handle for the plugin instance |
88 | */ | 88 | */ |
89 | struct ESCROW_PluginHandle ph; | 89 | static struct ESCROW_PluginHandle ph; |
90 | 90 | ||
91 | 91 | ||
92 | /** | 92 | /** |
93 | * Clean up a plugin operation, i.e. remove it from the list and | 93 | * Clean up a plugin operation, i.e. remove it from the list and |
94 | * free the respective memory | 94 | * free the respective memory |
95 | */ | 95 | */ |
96 | void | 96 | static void |
97 | cleanup_plugin_operation (struct ESCROW_PluginOperationWrapper *plugin_op_wrap) | 97 | cleanup_plugin_operation (struct ESCROW_PluginOperationWrapper *plugin_op_wrap) |
98 | { | 98 | { |
99 | struct ESCROW_PlaintextPluginOperation *p_op; | 99 | struct ESCROW_PlaintextPluginOperation *p_op; |
@@ -114,7 +114,7 @@ cleanup_plugin_operation (struct ESCROW_PluginOperationWrapper *plugin_op_wrap) | |||
114 | } | 114 | } |
115 | 115 | ||
116 | 116 | ||
117 | void | 117 | static void |
118 | start_cont (void *cls) | 118 | start_cont (void *cls) |
119 | { | 119 | { |
120 | struct ESCROW_PluginOperationWrapper *plugin_op_wrap = cls; | 120 | struct ESCROW_PluginOperationWrapper *plugin_op_wrap = cls; |
@@ -196,7 +196,7 @@ start_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h, | |||
196 | } | 196 | } |
197 | 197 | ||
198 | 198 | ||
199 | void | 199 | static void |
200 | verify_cont (void *cls) | 200 | verify_cont (void *cls) |
201 | { | 201 | { |
202 | struct ESCROW_PluginOperationWrapper *plugin_op_wrap = cls; | 202 | struct ESCROW_PluginOperationWrapper *plugin_op_wrap = cls; |
@@ -223,7 +223,7 @@ verify_cont (void *cls) | |||
223 | struct ESCROW_PluginOperationWrapper * | 223 | struct ESCROW_PluginOperationWrapper * |
224 | verify_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h, | 224 | verify_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h, |
225 | struct GNUNET_IDENTITY_Ego *ego, | 225 | struct GNUNET_IDENTITY_Ego *ego, |
226 | struct GNUNET_ESCROW_Anchor *anchor, | 226 | const struct GNUNET_ESCROW_Anchor *anchor, |
227 | ESCROW_Plugin_Continuation cb, | 227 | ESCROW_Plugin_Continuation cb, |
228 | uint32_t op_id) | 228 | uint32_t op_id) |
229 | { | 229 | { |
@@ -277,7 +277,7 @@ verify_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h, | |||
277 | } | 277 | } |
278 | 278 | ||
279 | 279 | ||
280 | void | 280 | static void |
281 | ego_created (const struct GNUNET_IDENTITY_Ego *ego) | 281 | ego_created (const struct GNUNET_IDENTITY_Ego *ego) |
282 | { | 282 | { |
283 | struct ESCROW_PluginOperationWrapper *curr; | 283 | struct ESCROW_PluginOperationWrapper *curr; |
@@ -348,7 +348,7 @@ create_finished (void *cls, | |||
348 | } | 348 | } |
349 | 349 | ||
350 | 350 | ||
351 | void | 351 | static void |
352 | handle_restore_error (void *cls) | 352 | handle_restore_error (void *cls) |
353 | { | 353 | { |
354 | struct ESCROW_PluginOperationWrapper *plugin_op_wrap = cls; | 354 | struct ESCROW_PluginOperationWrapper *plugin_op_wrap = cls; |
@@ -373,7 +373,7 @@ handle_restore_error (void *cls) | |||
373 | */ | 373 | */ |
374 | struct ESCROW_PluginOperationWrapper * | 374 | struct ESCROW_PluginOperationWrapper * |
375 | restore_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h, | 375 | restore_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h, |
376 | struct GNUNET_ESCROW_Anchor *anchor, | 376 | const struct GNUNET_ESCROW_Anchor *anchor, |
377 | ESCROW_Plugin_Continuation cb, | 377 | ESCROW_Plugin_Continuation cb, |
378 | uint32_t op_id) | 378 | uint32_t op_id) |
379 | { | 379 | { |
@@ -478,7 +478,7 @@ cancel_plaintext_operation (struct ESCROW_PluginOperationWrapper *plugin_op_wrap | |||
478 | /** | 478 | /** |
479 | * IdentityInitContinuation for the plaintext plugin | 479 | * IdentityInitContinuation for the plaintext plugin |
480 | */ | 480 | */ |
481 | void | 481 | static void |
482 | plaintext_cont_init () | 482 | plaintext_cont_init () |
483 | { | 483 | { |
484 | return; | 484 | return; |