From: Lennart Poettering Date: Wed, 22 Feb 2023 18:00:28 +0000 (+0100) Subject: systemctl: read 64bit integers into uint64_t X-Git-Tag: v254-rc1~1189^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=976baf26d3f498f7d525cb484f93caf96e5c10e5;p=thirdparty%2Fsystemd.git systemctl: read 64bit integers into uint64_t usec_t is also a uint64_t internally, hence this doesn't actually change anything. However, on the conceptual level, sd-bus expects a uint64_t hence give it one. --- diff --git a/src/systemctl/systemctl-list-units.c b/src/systemctl/systemctl-list-units.c index 131553d96ec..8e537300782 100644 --- a/src/systemctl/systemctl-list-units.c +++ b/src/systemctl/systemctl-list-units.c @@ -774,7 +774,7 @@ static int automount_info_compare(const struct automount_info *a, const struct a static int collect_automount_info(sd_bus* bus, const UnitInfo* info, struct automount_info *ret_info) { _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL; _cleanup_free_ char *mount = NULL, *mount_path = NULL, *where = NULL, *what = NULL, *state = NULL; - usec_t timeout_idle_usec; + uint64_t timeout_idle_usec; BusLocator locator; int r;