浏览代码

tests: remove surplus ';' in DO()/DOX() macros

Steffen Jaeckel 11 年之前
父节点
当前提交
e227000578
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      testprof/tomcrypt_test.h

+ 4 - 4
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 */