]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-journal: rename next_hash_offset() -> get_next_hash_offset()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Oct 2022 06:37:00 +0000 (15:37 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Oct 2022 06:37:04 +0000 (15:37 +0900)
As the function name conflicts with one of its argument.

src/libsystemd/sd-journal/journal-file.c

index 7dbbd4889c4d03f8cf9caa29bbebd17e29ec291d..8d71847c23d185ebc3b596e6d3faa36137f29640 100644 (file)
@@ -1252,7 +1252,7 @@ static int journal_file_link_data(
         return 0;
 }
 
-static int next_hash_offset(
+static int get_next_hash_offset(
                 JournalFile *f,
                 uint64_t *p,
                 le64_t *next_hash_offset,
@@ -1326,7 +1326,7 @@ int journal_file_find_field_object_with_hash(
                         return 1;
                 }
 
-                r = next_hash_offset(
+                r = get_next_hash_offset(
                                 f,
                                 &p,
                                 &o->field.next_hash_offset,
@@ -1427,7 +1427,7 @@ int journal_file_find_data_object_with_hash(
                 }
 
         next:
-                r = next_hash_offset(
+                r = get_next_hash_offset(
                                 f,
                                 &p,
                                 &o->data.next_hash_offset,