aboutsummaryrefslogtreecommitdiff
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,
77 struct GNUNET_TESTING_System *test_system = tss->test_system; 77 struct GNUNET_TESTING_System *test_system = tss->test_system;
78 78
79 struct GNUNET_TESTING_Trait traits[] = { 79 struct GNUNET_TESTING_Trait traits[] = {
80 { 80 GNUNET_TESTING_make_trait_test_system ((const void *) test_system),
81 .index = 0,
82 .trait_name = "test_system",
83 .ptr = (const void *) test_system,
84 },
85 GNUNET_TESTING_trait_end () 81 GNUNET_TESTING_trait_end ()
86 }; 82 };
87 83
@@ -93,24 +89,6 @@ system_create_traits (void *cls,
93 89
94 90
95/** 91/**
96 * Function to get the trait with struct GNUNET_TESTING_System
97 *
98 * @param[out] test_system The struct GNUNET_TESTING_System.
99 * @return #GNUNET_OK if no error occurred, #GNUNET_SYSERR otherwise.
100 */
101int
102GNUNET_TESTING_get_trait_test_system (const struct
103 GNUNET_TESTING_Command *cmd,
104 struct GNUNET_TESTING_System **test_system)
105{
106 return cmd->traits (cmd->cls,
107 (const void **) test_system,
108 "test_system",
109 (unsigned int) 0);
110}
111
112
113/**
114 * The cleanup function of this cmd frees resources the cmd allocated. 92 * The cleanup function of this cmd frees resources the cmd allocated.
115 * 93 *
116 */ 94 */