diff options
Diffstat (limited to 'src/testing/testing_api_cmd_local_test_prepared.c')
-rw-r--r-- | src/testing/testing_api_cmd_local_test_prepared.c | 25 |
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, | |||
47 | { | 47 | { |
48 | struct LocalPreparedState *lfs = cls; | 48 | struct LocalPreparedState *lfs = cls; |
49 | struct GNUNET_TESTING_Trait traits[] = { | 49 | struct GNUNET_TESTING_Trait traits[] = { |
50 | { | 50 | GNUNET_TESTING_make_trait_local_prepared_state ((const void *) lfs), |
51 | .index = 0, | ||
52 | .trait_name = "state", | ||
53 | .ptr = (const void *) lfs, | ||
54 | }, | ||
55 | GNUNET_TESTING_trait_end () | 51 | GNUNET_TESTING_trait_end () |
56 | }; | 52 | }; |
57 | return GNUNET_TESTING_get_trait (traits, | 53 | return GNUNET_TESTING_get_trait (traits, |
@@ -62,25 +58,6 @@ local_test_prepared_traits (void *cls, | |||
62 | 58 | ||
63 | 59 | ||
64 | /** | 60 | /** |
65 | * Function to get the trait with the struct LocalPreparedState. | ||
66 | * | ||
67 | * @param[out] lfs struct LocalPreparedState. | ||
68 | * @return #GNUNET_OK if no error occurred, #GNUNET_SYSERR otherwise. | ||
69 | * | ||
70 | */ | ||
71 | enum GNUNET_GenericReturnValue | ||
72 | GNUNET_TESTING_get_trait_local_prepared_state ( | ||
73 | const struct GNUNET_TESTING_Command *cmd, | ||
74 | struct LocalPreparedState **lfs) | ||
75 | { | ||
76 | return cmd->traits (cmd->cls, | ||
77 | (const void **) lfs, | ||
78 | "state", | ||
79 | (unsigned int) 0); | ||
80 | } | ||
81 | |||
82 | |||
83 | /** | ||
84 | * The cleanup function of this cmd frees resources the cmd allocated. | 61 | * The cleanup function of this cmd frees resources the cmd allocated. |
85 | * | 62 | * |
86 | */ | 63 | */ |