diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-05-24 09:36:56 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-05-31 14:30:23 +0200 |
commit | 4d9685be5f9174d38f87a2e6ab1a4bca72639774 (patch) | |
tree | ab9354a4b1e01634eb341221550e294e7778a1df /src/shared/bus-util.c | |
parent | d3d280242cc9cdfaf0184860029ddd738b6fa952 (diff) | |
download | systemd-4d9685be5f9174d38f87a2e6ab1a4bca72639774.tar.gz |
Use const char* for timestamp strings which we don't plan to modify
Makes the intent a bit clearer.
Diffstat (limited to 'src/shared/bus-util.c')
-rw-r--r-- | src/shared/bus-util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index a1d3ea2fb5..e150c8728e 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -697,7 +697,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) |