diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-08-01 00:24:11 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-08-01 00:24:11 +0200 |
commit | 8f7388042c433049b2b49c306caa80378e635c4d (patch) | |
tree | 87d1dff90a059f05349c1a326849ad4f459b8259 /src/lib/testing_api_cmd_serialize_keys.c | |
parent | 5b2efa2b0694f2e1d16af15c7c47cbd26f7c64c1 (diff) | |
download | exchange-8f7388042c433049b2b49c306caa80378e635c4d.tar.gz exchange-8f7388042c433049b2b49c306caa80378e635c4d.tar.bz2 exchange-8f7388042c433049b2b49c306caa80378e635c4d.zip |
fix indent
Diffstat (limited to 'src/lib/testing_api_cmd_serialize_keys.c')
-rw-r--r-- | src/lib/testing_api_cmd_serialize_keys.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/testing_api_cmd_serialize_keys.c b/src/lib/testing_api_cmd_serialize_keys.c index 866c95852..bacd041a7 100644 --- a/src/lib/testing_api_cmd_serialize_keys.c +++ b/src/lib/testing_api_cmd_serialize_keys.c @@ -76,6 +76,7 @@ struct ConnectWithStateState struct TALER_TESTING_Interpreter *is; }; + /** * Run the command. * @@ -109,7 +110,7 @@ serialize_keys_run (void *cls, * @param cls closure. * @param cmd the command which is being cleaned up. */ -void +static void serialize_keys_cleanup (void *cls, const struct TALER_TESTING_Command *cmd) { @@ -117,9 +118,8 @@ serialize_keys_cleanup (void *cls, if (NULL != sks->keys) { - json_decref (sks->keys); + json_decref (sks->keys); } - GNUNET_free ((char *) sks->exchange_url); GNUNET_free (sks); } @@ -142,9 +142,7 @@ serialize_keys_traits (void *cls, unsigned int index) { struct SerializeKeysState *sks = cls; - struct TALER_TESTING_Trait traits[] = { - TALER_TESTING_make_trait_exchange_keys (0, sks->keys), TALER_TESTING_make_trait_url (0, sks->exchange_url), TALER_TESTING_trait_end () @@ -230,7 +228,7 @@ connect_with_state_run (void *cls, * @param cls closure. * @param cmd the command which is being cleaned up. */ -void +static void connect_with_state_cleanup (void *cls, const struct TALER_TESTING_Command *cmd) @@ -240,6 +238,7 @@ connect_with_state_cleanup GNUNET_free (cwss); } + /** * Make a serialize-keys CMD. It will ask for * keys serialization __and__ disconnect from the @@ -259,12 +258,13 @@ TALER_TESTING_cmd_serialize_keys (const char *label) .label = label, .run = serialize_keys_run, .cleanup = serialize_keys_cleanup, - .traits = serialize_keys_traits + .traits = serialize_keys_traits }; return cmd; } + /** * Make a connect-with-state CMD. This command * will use a serialized key state to reconnect @@ -288,7 +288,7 @@ TALER_TESTING_cmd_connect_with_state (const char *label, struct TALER_TESTING_Command cmd = { .cls = cwss, .label = label, - .run = connect_with_state_run, + .run = connect_with_state_run, .cleanup = connect_with_state_cleanup }; |