]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal: use the usual spelling of "serialize" 31357/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Feb 2024 10:54:06 +0000 (11:54 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Feb 2024 10:56:28 +0000 (11:56 +0100)
src/journal/journald-socket.c

index 1fb204ea831c636363f6e75f7b52b26b87c8a260..24c8f05d45b9ef4997658cf9b9f328cd729ac57d 100644 (file)
@@ -47,7 +47,7 @@ static int server_open_forward_socket(Server *s) {
         return 1;
 }
 
-static inline bool must_serialise(struct iovec iov) {
+static inline bool must_serialize(struct iovec iov) {
         /* checks an iovec of the form FIELD=VALUE to see if VALUE needs binary safe serialisation:
          * See https://systemd.io/JOURNAL_EXPORT_FORMATS/#journal-export-format for more information
          * on binary safe serialisation for the journal export format */
@@ -89,7 +89,7 @@ int server_forward_socket(
         if (r <= 0)
                 return r;
 
-        /* We need a newline after each iovec + 4 for each we have to serialise in a binary safe way
+        /* We need a newline after each iovec + 4 for each we have to serialize in a binary safe way
          * + 1 for the final __REALTIME_TIMESTAMP metadata field. */
         size_t n = n_iovec * 5 + 1;
 
@@ -113,7 +113,7 @@ int server_forward_socket(
         struct iovec nl = IOVEC_MAKE_STRING("\n");
         size_t iov_idx = 0, len_idx = 0;
         FOREACH_ARRAY(i, iovec, n_iovec) {
-                if (must_serialise(*i)) {
+                if (must_serialize(*i)) {
                         const uint8_t *c;
                         c = memchr(i->iov_base, '=', i->iov_len);