From 4a6a5421113ab662a665c62ed6a24b61a5a36950 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 23 Sep 2011 08:47:53 +0200 Subject: Multiline macro cleanup This is mostly a cosmetic patch. The purpose of wrapping a multi-line macro in a do { } while(0) is to make the macro usable as a regular statement, not a compound statement. When the while(0) is terminated with a semicolon, the do { } while(0); block becomes a compound statement again. --- src/tests/strtonum-tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tests/strtonum-tests.c') diff --git a/src/tests/strtonum-tests.c b/src/tests/strtonum-tests.c index 441b262c..e7d70364 100644 --- a/src/tests/strtonum-tests.c +++ b/src/tests/strtonum-tests.c @@ -58,7 +58,7 @@ #define CHECK_ZERO_ENDPTR(endptr) \ do { \ fail_unless(endptr && *endptr == '\0', "Invalid endptr"); \ - } while(0); + } while(0) /****************** * strtoint tests * -- cgit