twister

HTTP fault injector for testing
Log | Files | Refs | README | LICENSE

commit 43a8e055238bbc5d0acc33c3b0d52f92e93a8ed7
parent 6bd44242b3c56faf1e8fa2749b085f44733301a8
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 20 Nov 2018 11:25:55 +0100

add missing const, fix whitespace issues

Diffstat:
Msrc/twister/testing_api_cmd_exec_client.c | 30+++++++++++++++++-------------
1 file changed, 17 insertions(+), 13 deletions(-)

diff --git a/src/twister/testing_api_cmd_exec_client.c b/src/twister/testing_api_cmd_exec_client.c @@ -195,7 +195,7 @@ hack_response_code_cleanup */ static int hack_response_code_traits (void *cls, - void **ret, + const void **ret, const char *trait, unsigned int index) { @@ -307,6 +307,7 @@ delete_object_cleanup GNUNET_free (dos); } + /** * Offer data internal to a "delete object" CMD, * to other commands. @@ -319,7 +320,7 @@ delete_object_cleanup */ static int delete_object_traits (void *cls, - void **ret, + const void **ret, const char *trait, unsigned int index) { @@ -367,6 +368,7 @@ delete_object_run (void *cls, TALER_TESTING_wait_for_sigchld (is); } + /** * Free the state from a "modify object" CMD, and * possibly kill its process if it did not terminate yet. @@ -392,6 +394,7 @@ modify_object_cleanup GNUNET_free (mos); } + /** * Offer data internal to a "modify object" CMD, * to other commands. @@ -404,7 +407,7 @@ modify_object_cleanup */ static int modify_object_traits (void *cls, - void **ret, + const void **ret, const char *trait, unsigned int index) { @@ -421,6 +424,7 @@ modify_object_traits (void *cls, index); } + /** * Run a "modify object" CMD. The "download fashion" of it. * @@ -486,6 +490,7 @@ modify_object_ul_run (void *cls, TALER_TESTING_wait_for_sigchld (is); } + /** * Create a "delete object" CMD. This command deletes * the JSON object pointed by @a path. @@ -543,6 +548,7 @@ flip_object_cleanup GNUNET_free (fos); } + /** * Offer data internal to a "flip object" CMD, * to other commands. @@ -555,7 +561,7 @@ flip_object_cleanup */ static int flip_object_traits (void *cls, - void **ret, + const void **ret, const char *trait, unsigned int index) { @@ -572,6 +578,7 @@ flip_object_traits (void *cls, index); } + /** * Run a "flip object" CMD, the upload fashion of it. * @@ -705,11 +712,9 @@ TALER_TESTING_cmd_flip_download (const char *label, * @param cls closure. * @param cmd the command being cleaned up. */ - static void -malform_request_cleanup - (void *cls, - const struct TALER_TESTING_Command *cmd) +malform_request_cleanup (void *cls, + const struct TALER_TESTING_Command *cmd) { struct MalformRequestState *mrs = cls; @@ -737,11 +742,10 @@ malform_request_cleanup */ static int malform_request_traits (void *cls, - void **ret, + const void **ret, const char *trait, unsigned int index) { - struct MalformRequestState *mrs = cls; struct TALER_TESTING_Trait traits[] = { TALER_TESTING_make_trait_process (0, &mrs->proc), @@ -811,7 +815,6 @@ malform_response_cleanup } - /** * Offer data internal to a "malform response" CMD, * to other commands. @@ -824,11 +827,10 @@ malform_response_cleanup */ static int malform_response_traits (void *cls, - void **ret, + const void **ret, const char *trait, unsigned int index) { - struct MalformResponseState *mrs = cls; struct TALER_TESTING_Trait traits[] = { TALER_TESTING_make_trait_process (0, &mrs->proc), @@ -873,6 +875,7 @@ malform_response_run (void *cls, TALER_TESTING_wait_for_sigchld (is); } + /** * Create a "malform request" CMD. This command makes the * next request randomly malformed (by truncating it). @@ -900,6 +903,7 @@ TALER_TESTING_cmd_malform_request (const char *label, return cmd; } + /** * Create a "malform response" CMD. This command makes * the next response randomly malformed (by truncating it).