diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-08 19:38:10 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-08 19:38:10 +0900 |
commit | dccf4142eaac44711692c295d81e0103c8042cd2 (patch) | |
tree | 1dd25be9945abbc37b581d743c68303eac54c498 /src | |
parent | f26345b68768695391d9a8ae983a27c03b8ce874 (diff) | |
download | gnunet-dccf4142eaac44711692c295d81e0103c8042cd2.tar.gz gnunet-dccf4142eaac44711692c295d81e0103c8042cd2.zip |
-more fixmes, minor const fix
Diffstat (limited to 'src')
-rw-r--r-- | src/include/gnunet_testing_ng_lib.h | 3 | ||||
-rw-r--r-- | src/testing/testing_api_loop.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/include/gnunet_testing_ng_lib.h b/src/include/gnunet_testing_ng_lib.h index 1e2f4b30d..768298b48 100644 --- a/src/include/gnunet_testing_ng_lib.h +++ b/src/include/gnunet_testing_ng_lib.h | |||
@@ -404,6 +404,7 @@ GNUNET_TESTING_main (struct GNUNET_TESTING_Command *commands, | |||
404 | * @param marker chunk to find in @a prog | 404 | * @param marker chunk to find in @a prog |
405 | * // FIXME: this does not belong here! => libgnunetutil, maybe? | 405 | * // FIXME: this does not belong here! => libgnunetutil, maybe? |
406 | * // FIXME: return bool? document return value! | 406 | * // FIXME: return bool? document return value! |
407 | * // FIXME: man strstr?? | ||
407 | */ | 408 | */ |
408 | int | 409 | int |
409 | GNUNET_TESTING_has_in_name (const char *prog, | 410 | GNUNET_TESTING_has_in_name (const char *prog, |
@@ -497,7 +498,7 @@ GNUNET_TESTING_running (const struct GNUNET_TESTING_Command *command); | |||
497 | * @return GNUNET_NO if the command is not finished, GNUNET_YES if it is finished. | 498 | * @return GNUNET_NO if the command is not finished, GNUNET_YES if it is finished. |
498 | */ | 499 | */ |
499 | enum GNUNET_GenericReturnValue | 500 | enum GNUNET_GenericReturnValue |
500 | GNUNET_TESTING_finished (struct GNUNET_TESTING_Command *command); | 501 | GNUNET_TESTING_finished (const struct GNUNET_TESTING_Command *command); |
501 | 502 | ||
502 | 503 | ||
503 | /** | 504 | /** |
diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c index f19654029..a3a8219b3 100644 --- a/src/testing/testing_api_loop.c +++ b/src/testing/testing_api_loop.c | |||
@@ -479,7 +479,7 @@ GNUNET_TESTING_running (const struct GNUNET_TESTING_Command *command) | |||
479 | 479 | ||
480 | 480 | ||
481 | enum GNUNET_GenericReturnValue | 481 | enum GNUNET_GenericReturnValue |
482 | GNUNET_TESTING_finished (struct GNUNET_TESTING_Command *command) | 482 | GNUNET_TESTING_finished (const struct GNUNET_TESTING_Command *command) |
483 | { | 483 | { |
484 | struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get (); | 484 | struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get (); |
485 | struct GNUNET_TIME_Relative diff = GNUNET_TIME_absolute_get_difference ( | 485 | struct GNUNET_TIME_Relative diff = GNUNET_TIME_absolute_get_difference ( |