summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_checkserver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_cmd_checkserver.c')
-rw-r--r--src/testing/testing_api_cmd_checkserver.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/testing/testing_api_cmd_checkserver.c b/src/testing/testing_api_cmd_checkserver.c
index aa75e374..39df54f6 100644
--- a/src/testing/testing_api_cmd_checkserver.c
+++ b/src/testing/testing_api_cmd_checkserver.c
@@ -79,6 +79,7 @@ struct CheckState
};
+
/**
* Run the command.
*
@@ -93,11 +94,11 @@ checkserver_run (void *cls,
{
struct CheckState *cs = cls;
const struct TALER_TESTING_Command *ref;
- char **url;
- char **http_method;
- char **header;
- void **body;
- size_t *body_size;
+ const char **url;
+ const char **http_method;
+ const char **header;
+ const void **body;
+ const size_t *body_size;
(void) cmd;
cs->is = is;
@@ -181,8 +182,10 @@ checkserver_run (void *cls,
cs->index,
&body_size))
TALER_TESTING_interpreter_fail (is);
- if ( ( (NULL == cs->expected_body) && (NULL != *body)) ||
- ( (NULL != cs->expected_body) && (NULL == body)) ||
+ if ( ( (NULL == cs->expected_body) &&
+ (NULL != *body) ) ||
+ ( (NULL != cs->expected_body) &&
+ (NULL == body) ) ||
( (NULL != cs->expected_body) &&
( (*body_size != strlen (cs->expected_body)) ||
(0 != memcmp (cs->expected_body,
@@ -197,7 +200,6 @@ checkserver_run (void *cls,
TALER_TESTING_interpreter_fail (is);
return;
}
-
TALER_TESTING_interpreter_next (is);
}