From f26345b68768695391d9a8ae983a27c03b8ce874 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Thu, 8 Dec 2022 19:21:52 +0900 Subject: -more fixmes --- src/include/gnunet_testing_ng_lib.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/include/gnunet_testing_ng_lib.h') diff --git a/src/include/gnunet_testing_ng_lib.h b/src/include/gnunet_testing_ng_lib.h index 88910f65f..1e2f4b30d 100644 --- a/src/include/gnunet_testing_ng_lib.h +++ b/src/include/gnunet_testing_ng_lib.h @@ -99,6 +99,17 @@ struct GNUNET_TESTING_AsyncContext */ struct GNUNET_TESTING_Command { + // FIXME: This should not be here. Looking at the code commands are used + // in arrays. Not lists. + /** + * Pointer to the previous command in the DLL. + */ + struct GNUNET_TESTING_Command *prev; + + /** + * Pointer to the next command in the DLL. + */ + struct GNUNET_TESTING_Command *next; /** * Closure for all commands with command-specific context information. @@ -194,16 +205,6 @@ struct GNUNET_TESTING_Command */ struct GNUNET_TIME_Relative default_timeout; - /** - * Pointer to the previous command in the DLL. - */ - struct GNUNET_TESTING_Command *prev; - - /** - * Pointer to the next command in the DLL. - */ - struct GNUNET_TESTING_Command *next; - /** * How often did we try to execute this command? (In case it is a request * that is repated.) Note that a command must have some built-in retry -- cgit v1.2.3