summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_system_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_cmd_system_create.c')
-rw-r--r--src/testing/testing_api_cmd_system_create.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/testing/testing_api_cmd_system_create.c b/src/testing/testing_api_cmd_system_create.c
index 275132684..221bbb8f6 100644
--- a/src/testing/testing_api_cmd_system_create.c
+++ b/src/testing/testing_api_cmd_system_create.c
@@ -77,11 +77,7 @@ system_create_traits (void *cls,
struct GNUNET_TESTING_System *test_system = tss->test_system;
struct GNUNET_TESTING_Trait traits[] = {
- {
- .index = 0,
- .trait_name = "test_system",
- .ptr = (const void *) test_system,
- },
+ GNUNET_TESTING_make_trait_test_system ((const void *) test_system),
GNUNET_TESTING_trait_end ()
};
@@ -93,24 +89,6 @@ system_create_traits (void *cls,
/**
- * Function to get the trait with struct GNUNET_TESTING_System
- *
- * @param[out] test_system The struct GNUNET_TESTING_System.
- * @return #GNUNET_OK if no error occurred, #GNUNET_SYSERR otherwise.
- */
-int
-GNUNET_TESTING_get_trait_test_system (const struct
- GNUNET_TESTING_Command *cmd,
- struct GNUNET_TESTING_System **test_system)
-{
- return cmd->traits (cmd->cls,
- (const void **) test_system,
- "test_system",
- (unsigned int) 0);
-}
-
-
-/**
* The cleanup function of this cmd frees resources the cmd allocated.
*
*/