sd-journal: drop an unused variable

This commit is contained in:
Frantisek Sumsal
2022-08-20 20:46:23 +02:00
parent d7c1024b6b
commit 94510784e1
+1 -4
View 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)) {