diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2018-08-10 12:45:42 +0000 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2018-08-10 13:34:24 +0000 |
commit | 1e0c5fc2a76e4f3d508331f410899c50493e1fc9 (patch) | |
tree | 335cd9c1ea1a16561a85e35d2560b069e086c8da | |
parent | fsck: use our usual syntax for defining bit masks (diff) | |
download | systemd-1e0c5fc2a76e4f3d508331f410899c50493e1fc9.tar.gz systemd-1e0c5fc2a76e4f3d508331f410899c50493e1fc9.tar.bz2 systemd-1e0c5fc2a76e4f3d508331f410899c50493e1fc9.zip |
journald: make it clear that dev_kmsg_record modifies the string passed to it
The function replaces a couple commas, a semicolon and the final newline with
zero bytes in the string passed to it. The 'const' seems to have been added
by accident during a bulk edit (more specifically 3b3154df7e2773332bb814).
-rw-r--r-- | src/journal/journald-kmsg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-kmsg.c b/src/journal/journald-kmsg.c index e9aff1316..7ad673362 100644 --- a/src/journal/journald-kmsg.c +++ b/src/journal/journald-kmsg.c @@ -93,7 +93,7 @@ static bool is_us(const char *identifier, const char *pid) { streq(identifier, program_invocation_short_name); } -static void dev_kmsg_record(Server *s, const char *p, size_t l) { +static void dev_kmsg_record(Server *s, char *p, size_t l) { _cleanup_free_ char *message = NULL, *syslog_priority = NULL, *syslog_pid = NULL, *syslog_facility = NULL, *syslog_identifier = NULL, *source_time = NULL, *identifier = NULL, *pid = NULL; struct iovec iovec[N_IOVEC_META_FIELDS + 7 + N_IOVEC_KERNEL_FIELDS + 2 + N_IOVEC_UDEV_FIELDS]; |