]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-journal: Remove const from function parameter
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 15 Dec 2025 08:08:00 +0000 (09:08 +0100)
committerDaanDeMeyer <daan.j.demeyer@gmail.com>
Fri, 2 Jan 2026 08:22:23 +0000 (09:22 +0100)
boot_id is already passed by value, and hence copied.
Since we don't apply const to function parameters
that are copied anywhere else, let's drop the const
here as well for consistency.

src/systemd/sd-journal.h

index e21a7184e3d9227df7807724a9b3f090c993ea15..5c5d883b44f77e2a10e0f9c4817125f2c277ff2a 100644 (file)
@@ -124,7 +124,7 @@ int sd_journal_get_cursor(sd_journal *j, char **ret_cursor);
 int sd_journal_test_cursor(sd_journal *j, const char *cursor);
 
 int sd_journal_get_cutoff_realtime_usec(sd_journal *j, uint64_t *from, uint64_t *to);
-int sd_journal_get_cutoff_monotonic_usec(sd_journal *j, const sd_id128_t boot_id, uint64_t *from, uint64_t *to);
+int sd_journal_get_cutoff_monotonic_usec(sd_journal *j, sd_id128_t boot_id, uint64_t *from, uint64_t *to);
 
 int sd_journal_get_usage(sd_journal *j, uint64_t *ret_bytes);