]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-journal: drop an unused variable
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 20 Aug 2022 18:38:17 +0000 (20:38 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 20 Aug 2022 18:46:23 +0000 (20:46 +0200)
src/libsystemd/sd-journal/journal-verify.c

index 40aff67ee82bfa278f3358d462afa55d94409938..b9f6a161edca6dbb80297f17864a7d7fb1ed44de 100644 (file)
@@ -822,7 +822,7 @@ int journal_file_verify(
         uint64_t entry_seqnum = 0, entry_monotonic = 0, entry_realtime = 0;
         sd_id128_t entry_boot_id = {};  /* Unnecessary initialization to appease gcc */
         bool entry_seqnum_set = false, entry_monotonic_set = false, entry_realtime_set = false, found_main_entry_array = false;
-        uint64_t n_weird = 0, n_objects = 0, n_entries = 0, n_data = 0, n_fields = 0, n_data_hash_tables = 0, n_field_hash_tables = 0, n_entry_arrays = 0, n_tags = 0;
+        uint64_t n_objects = 0, n_entries = 0, n_data = 0, n_fields = 0, n_data_hash_tables = 0, n_field_hash_tables = 0, n_entry_arrays = 0, n_tags = 0;
         usec_t last_usec = 0;
         _cleanup_close_ int data_fd = -1, entry_fd = -1, entry_array_fd = -1;
         _cleanup_fclose_ FILE *data_fp = NULL, *entry_fp = NULL, *entry_array_fp = NULL;
@@ -1205,9 +1205,6 @@ int journal_file_verify(
 
                         n_tags++;
                         break;
-
-                default:
-                        n_weird++;
                 }
 
                 if (p == le64toh(f->header->tail_object_offset)) {