]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journalctl,analyze: use assert_cc in two more places
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 12 May 2026 19:18:15 +0000 (21:18 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 12 May 2026 20:39:21 +0000 (22:39 +0200)
src/analyze/analyze.c
src/journal/journalctl.c

index 0f848264c73f0ade680c478bfdb02f4fef096d15..759c5600ad27662a1a371fe5e7cfe6422b492493 100644 (file)
@@ -227,7 +227,7 @@ static int help(void) {
         if (r < 0)
                 return r;
 
-        assert_se(ELEMENTSOF(vtables) == 9);
+        assert_cc(ELEMENTSOF(vtables) == 9);
         (void) table_sync_column_widths(0, options, vtables[0], vtables[1], vtables[2],
                                         vtables[3], vtables[4], vtables[5], vtables[6],
                                         vtables[7], vtables[8]);
index c5009eb6f05605267c50d95808733450c2a2cc90..5d0b8e228577a58f05c08f87609b6c2bffdf379d 100644 (file)
@@ -251,7 +251,7 @@ static int help(void) {
                         return r;
         }
 
-        assert_se(ELEMENTSOF(tables) == 6);
+        assert_cc(ELEMENTSOF(tables) == 6);
         (void) table_sync_column_widths(0, tables[0], tables[1], tables[2],
                                         tables[3], tables[4], tables[5]);