From c0f86d66f3f6b561528e7f856f9926bec766c036 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Mon, 29 Aug 2022 13:07:11 +0200 Subject: tree-wide: Use correct format specifiers gcc will complain about all these with -Wformat-signedness. --- src/home/homework-mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/home/homework-mount.c') diff --git a/src/home/homework-mount.c b/src/home/homework-mount.c index a9c793c429..cd03f79a73 100644 --- a/src/home/homework-mount.c +++ b/src/home/homework-mount.c @@ -202,7 +202,7 @@ static int make_userns(uid_t stored_uid, uid_t exposed_uid) { return log_oom(); /* Now map the UID we are doing this for to the target UID. */ - r = strextendf(&text, UID_FMT " " UID_FMT " " UID_FMT "\n", stored_uid, exposed_uid, 1); + r = strextendf(&text, UID_FMT " " UID_FMT " " UID_FMT "\n", stored_uid, exposed_uid, 1u); if (r < 0) return log_oom(); @@ -221,7 +221,7 @@ static int make_userns(uid_t stored_uid, uid_t exposed_uid) { /* Map nspawn's mapped root UID as identity mapping so that people can run nspawn uidmap mounted * containers off $HOME, if they want. */ - r = strextendf(&text, UID_FMT " " UID_FMT " " UID_FMT "\n", UID_MAPPED_ROOT, UID_MAPPED_ROOT, 1); + r = strextendf(&text, UID_FMT " " UID_FMT " " UID_FMT "\n", UID_MAPPED_ROOT, UID_MAPPED_ROOT, 1u); if (r < 0) return log_oom(); -- cgit v1.2.3