diff options
author | Jan Janssen <medhefgo@web.de> | 2022-08-29 13:07:11 +0200 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2022-08-30 12:03:28 +0200 |
commit | c0f86d66f3f6b561528e7f856f9926bec766c036 (patch) | |
tree | b5b17ffb3a41a7974ff0ad35db009b4f8aa94116 /src/home/homework-mount.c | |
parent | Merge pull request #24474 from yuwata/udevadm-settle-cleanups (diff) | |
download | systemd-c0f86d66f3f6b561528e7f856f9926bec766c036.tar.xz systemd-c0f86d66f3f6b561528e7f856f9926bec766c036.zip |
tree-wide: Use correct format specifiers
gcc will complain about all these with -Wformat-signedness.
Diffstat (limited to 'src/home/homework-mount.c')
-rw-r--r-- | src/home/homework-mount.c | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |