From: Lennart Poettering Date: Mon, 14 Mar 2022 10:53:02 +0000 (+0100) Subject: test: change // comments to /* */ X-Git-Tag: v251-rc1~149^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14a8002ae5f4e4e8987228dc2739ffabc2e036ec;p=thirdparty%2Fsystemd.git test: change // comments to /* */ We use // comments only for "FIXME" style comments, and explanatory comments get /* */, as per coding style. --- diff --git a/src/test/test-macro.c b/src/test/test-macro.c index d33d22c18cb..24411f10a52 100644 --- a/src/test/test-macro.c +++ b/src/test/test-macro.c @@ -340,7 +340,7 @@ TEST(flags) { assert_se(!FLAGS_SET(F1 | F2, F1 | F3)); assert_se(!FLAGS_SET(F1 | F2 | F3, ~F_ALL)); - // Check for no double eval. + /* Check for no double eval. */ n = F2; f = F1; assert_se(!FLAGS_SET(--n, ++f)); @@ -379,7 +379,7 @@ TEST(flags) { assert_se(UPDATE_FLAG(F1, F_ALL, false) == 0); assert_se(UPDATE_FLAG(F_ALL, F_ALL, false) == 0); - // Check for no double eval. + /* Check for no double eval. */ n = F2; f = F1; assert_se(UPDATE_FLAG(--n, ++f, true) == (F1 | F2));