summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-05-24 09:36:56 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commita6aa5c9e8f623797c3868ab0bc5805543b4ef1b7 (patch)
tree8a627a255c65134a1251e551202f0dd651f8136b /src/shared
parent0fd6a0f934d6ad4d553a4b81dd4c7549dd440c37 (diff)
Use const char* for timestamp strings which we don't plan to modify
Makes the intent a bit clearer.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/bus-util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c
index 4f66bb3b7..195b1a69e 100644
--- a/src/shared/bus-util.c
+++ b/src/shared/bus-util.c
@@ -701,7 +701,8 @@ int bus_print_property(const char *name, sd_bus_message *m, bool value, bool all
* should it turn out to not be sufficient */
if (endswith(name, "Timestamp") || STR_IN_SET(name, "NextElapseUSecRealtime", "LastTriggerUSec")) {
- char timestamp[FORMAT_TIMESTAMP_MAX], *t;
+ char timestamp[FORMAT_TIMESTAMP_MAX];
+ const char *t;
t = format_timestamp(timestamp, sizeof(timestamp), u);
if (t || all)