]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-remote: constify a few parameters
authorLennart Poettering <lennart@poettering.net>
Thu, 24 Mar 2022 10:20:12 +0000 (11:20 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 25 Mar 2022 08:21:38 +0000 (09:21 +0100)
src/journal-remote/journal-remote-write.c
src/journal-remote/journal-remote-write.h

index 5e47616504ade37316b50edc29914cfd37d37af8..6477bfac2d79732fecb41e3fcea47754582b3390 100644 (file)
@@ -57,9 +57,9 @@ static Writer* writer_free(Writer *w) {
 DEFINE_TRIVIAL_REF_UNREF_FUNC(Writer, writer, writer_free);
 
 int writer_write(Writer *w,
-                 struct iovec_wrapper *iovw,
-                 dual_timestamp *ts,
-                 sd_id128_t *boot_id,
+                 const struct iovec_wrapper *iovw,
+                 const dual_timestamp *ts,
+                 const sd_id128_t *boot_id,
                  bool compress,
                  bool seal) {
         int r;
index ccbea29fbd2c4e516e181906ac7507fcc3cc9239..0e375f3489e5429c4c2e1d8c68c893ed95f2d47d 100644 (file)
@@ -26,9 +26,9 @@ Writer* writer_unref(Writer *w);
 DEFINE_TRIVIAL_CLEANUP_FUNC(Writer*, writer_unref);
 
 int writer_write(Writer *s,
-                 struct iovec_wrapper *iovw,
-                 dual_timestamp *ts,
-                 sd_id128_t *boot_id,
+                 const struct iovec_wrapper *iovw,
+                 const dual_timestamp *ts,
+                 const sd_id128_t *boot_id,
                  bool compress,
                  bool seal);