]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: read 64bit integers into uint64_t 26540/head
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Feb 2023 18:00:28 +0000 (19:00 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 22 Feb 2023 18:00:42 +0000 (19:00 +0100)
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.

src/systemctl/systemctl-list-units.c

index 131553d96ecc63233e748e4d48de6d272acffb0b..8e537300782be546eaf687bb56ca46cadde0ff7c 100644 (file)
@@ -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;