From e227000578566d1a6aa5be3da1568e225fef164a Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Tue, 19 Aug 2014 19:17:36 +0200 Subject: [PATCH] tests: remove surplus ';' in DO()/DOX() macros --- testprof/tomcrypt_test.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testprof/tomcrypt_test.h b/testprof/tomcrypt_test.h index 773d61c..c51b126 100644 --- a/testprof/tomcrypt_test.h +++ b/testprof/tomcrypt_test.h @@ -39,11 +39,11 @@ extern prng_state yarrow_prng; void run_cmd(int res, int line, char *file, char *cmd, const char *algorithm); #ifdef LTC_VERBOSE -#define DO(x) do { fprintf(stderr, "%s:\n", #x); run_cmd((x), __LINE__, __FILE__, #x, NULL); } while (0); -#define DOX(x, str) do { fprintf(stderr, "%s - %s:\n", #x, (str)); run_cmd((x), __LINE__, __FILE__, #x, (str)); } while (0); +#define DO(x) do { fprintf(stderr, "%s:\n", #x); run_cmd((x), __LINE__, __FILE__, #x, NULL); } while (0) +#define DOX(x, str) do { fprintf(stderr, "%s - %s:\n", #x, (str)); run_cmd((x), __LINE__, __FILE__, #x, (str)); } while (0) #else -#define DO(x) do { run_cmd((x), __LINE__, __FILE__, #x, NULL); } while (0); -#define DOX(x, str) do { run_cmd((x), __LINE__, __FILE__, #x, (str)); } while (0); +#define DO(x) do { run_cmd((x), __LINE__, __FILE__, #x, NULL); } while (0) +#define DOX(x, str) do { run_cmd((x), __LINE__, __FILE__, #x, (str)); } while (0) #endif /* TESTS */