summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_local_test_prepared.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_cmd_local_test_prepared.c')
-rw-r--r--src/testing/testing_api_cmd_local_test_prepared.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/testing/testing_api_cmd_local_test_prepared.c b/src/testing/testing_api_cmd_local_test_prepared.c
index 9dc7dfa9a..1f470a6c1 100644
--- a/src/testing/testing_api_cmd_local_test_prepared.c
+++ b/src/testing/testing_api_cmd_local_test_prepared.c
@@ -47,11 +47,7 @@ local_test_prepared_traits (void *cls,
{
struct LocalPreparedState *lfs = cls;
struct GNUNET_TESTING_Trait traits[] = {
- {
- .index = 0,
- .trait_name = "state",
- .ptr = (const void *) lfs,
- },
+ GNUNET_TESTING_make_trait_local_prepared_state ((const void *) lfs),
GNUNET_TESTING_trait_end ()
};
return GNUNET_TESTING_get_trait (traits,
@@ -62,25 +58,6 @@ local_test_prepared_traits (void *cls,
/**
- * Function to get the trait with the struct LocalPreparedState.
- *
- * @param[out] lfs struct LocalPreparedState.
- * @return #GNUNET_OK if no error occurred, #GNUNET_SYSERR otherwise.
- *
- */
-enum GNUNET_GenericReturnValue
-GNUNET_TESTING_get_trait_local_prepared_state (
- const struct GNUNET_TESTING_Command *cmd,
- struct LocalPreparedState **lfs)
-{
- return cmd->traits (cmd->cls,
- (const void **) lfs,
- "state",
- (unsigned int) 0);
-}
-
-
-/**
* The cleanup function of this cmd frees resources the cmd allocated.
*
*/