diff options
Diffstat (limited to 'src/testing/testing_api_cmd_send_peer_ready.c')
-rw-r--r-- | src/testing/testing_api_cmd_send_peer_ready.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/testing/testing_api_cmd_send_peer_ready.c b/src/testing/testing_api_cmd_send_peer_ready.c index 016837214..8b4c11deb 100644 --- a/src/testing/testing_api_cmd_send_peer_ready.c +++ b/src/testing/testing_api_cmd_send_peer_ready.c | |||
@@ -53,13 +53,13 @@ struct SendPeerReadyState | |||
53 | * Trait function of this cmd does nothing. | 53 | * Trait function of this cmd does nothing. |
54 | * | 54 | * |
55 | */ | 55 | */ |
56 | static int | 56 | static enum GNUNET_GenericReturnValue |
57 | send_peer_ready_traits (void *cls, | 57 | send_peer_ready_traits (void *cls, |
58 | const void **ret, | 58 | const void **ret, |
59 | const char *trait, | 59 | const char *trait, |
60 | unsigned int index) | 60 | unsigned int index) |
61 | { | 61 | { |
62 | return GNUNET_OK; | 62 | return GNUNET_NO; |
63 | } | 63 | } |
64 | 64 | ||
65 | 65 | ||
@@ -68,8 +68,7 @@ send_peer_ready_traits (void *cls, | |||
68 | * | 68 | * |
69 | */ | 69 | */ |
70 | static void | 70 | static void |
71 | send_peer_ready_cleanup (void *cls, | 71 | send_peer_ready_cleanup (void *cls) |
72 | const struct GNUNET_TESTING_Command *cmd) | ||
73 | { | 72 | { |
74 | struct SendPeerReadyState *sprs = cls; | 73 | struct SendPeerReadyState *sprs = cls; |
75 | 74 | ||
@@ -84,7 +83,6 @@ send_peer_ready_cleanup (void *cls, | |||
84 | */ | 83 | */ |
85 | static void | 84 | static void |
86 | send_peer_ready_run (void *cls, | 85 | send_peer_ready_run (void *cls, |
87 | const struct GNUNET_TESTING_Command *cmd, | ||
88 | struct GNUNET_TESTING_Interpreter *is) | 86 | struct GNUNET_TESTING_Interpreter *is) |
89 | { | 87 | { |
90 | struct SendPeerReadyState *sprs = cls; | 88 | struct SendPeerReadyState *sprs = cls; |
@@ -115,14 +113,15 @@ GNUNET_TESTING_cmd_send_peer_ready (const char *label, | |||
115 | 113 | ||
116 | sprs = GNUNET_new (struct SendPeerReadyState); | 114 | sprs = GNUNET_new (struct SendPeerReadyState); |
117 | sprs->write_message = write_message; | 115 | sprs->write_message = write_message; |
118 | 116 | { | |
119 | struct GNUNET_TESTING_Command cmd = { | 117 | struct GNUNET_TESTING_Command cmd = { |
120 | .cls = sprs, | 118 | .cls = sprs, |
121 | .label = label, | 119 | .label = label, |
122 | .run = &send_peer_ready_run, | 120 | .run = &send_peer_ready_run, |
123 | .cleanup = &send_peer_ready_cleanup, | 121 | .cleanup = &send_peer_ready_cleanup, |
124 | .traits = &send_peer_ready_traits | 122 | .traits = &send_peer_ready_traits |
125 | }; | 123 | }; |
126 | 124 | ||
127 | return cmd; | 125 | return cmd; |
126 | } | ||
128 | } | 127 | } |