aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_hello_world_birth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_cmd_hello_world_birth.c')
-rw-r--r--src/testing/testing_api_cmd_hello_world_birth.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/testing/testing_api_cmd_hello_world_birth.c b/src/testing/testing_api_cmd_hello_world_birth.c
index 9d60059a5..8415b99f0 100644
--- a/src/testing/testing_api_cmd_hello_world_birth.c
+++ b/src/testing/testing_api_cmd_hello_world_birth.c
@@ -40,8 +40,7 @@ struct HelloWorldBirthState
40* @param cmd current CMD being cleaned up. 40* @param cmd current CMD being cleaned up.
41*/ 41*/
42static void 42static void
43hello_world_birth_cleanup (void *cls, 43hello_world_birth_cleanup (void *cls)
44 const struct GNUNET_TESTING_Command *cmd)
45{ 44{
46 struct HelloWorldBirthState *hbs = cls; 45 struct HelloWorldBirthState *hbs = cls;
47 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 46 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
@@ -49,6 +48,7 @@ hello_world_birth_cleanup (void *cls,
49 hbs->what_am_i); 48 hbs->what_am_i);
50} 49}
51 50
51
52/** 52/**
53* 53*
54* 54*
@@ -82,6 +82,7 @@ hello_world_birth_traits (void *cls,
82 index); 82 index);
83} 83}
84 84
85
85/** 86/**
86* Run the "hello world" CMD. 87* Run the "hello world" CMD.
87* 88*
@@ -91,14 +92,13 @@ hello_world_birth_traits (void *cls,
91*/ 92*/
92static void 93static void
93hello_world_birth_run (void *cls, 94hello_world_birth_run (void *cls,
94 const struct GNUNET_TESTING_Command *cmd,
95 struct GNUNET_TESTING_Interpreter *is) 95 struct GNUNET_TESTING_Interpreter *is)
96{ 96{
97 struct HelloWorldBirthState *hbs = cls; 97 struct HelloWorldBirthState *hbs = cls;
98 struct GNUNET_TIME_Relative relative; 98 struct GNUNET_TIME_Relative relative;
99 99
100 relative = GNUNET_TIME_absolute_get_difference (*hbs->date, 100 relative = GNUNET_TIME_absolute_get_difference (*hbs->date,
101 GNUNET_TIME_absolute_get ()); 101 GNUNET_TIME_absolute_get ());
102 102
103 if (0 == relative.rel_value_us % 10) 103 if (0 == relative.rel_value_us % 10)
104 { 104 {
@@ -114,6 +114,7 @@ hello_world_birth_run (void *cls,
114 } 114 }
115} 115}
116 116
117
117/** 118/**
118 * Offer data from trait 119 * Offer data from trait
119 * 120 *
@@ -131,6 +132,7 @@ GNUNET_TESTING_get_trait_what_am_i (const struct GNUNET_TESTING_Command *cmd,
131 (unsigned int) 0); 132 (unsigned int) 0);
132} 133}
133 134
135
134/** 136/**
135 * Create command. 137 * Create command.
136 * 138 *