diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-08-28 05:56:25 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-08-28 10:10:50 +0900 |
commit | ca8228295ec20e561119729a2cf117e4531d7f56 (patch) | |
tree | d31f8189834a0f126b68dcdb976b66bd4ffdbd23 /src/udev/udevadm-lock.c | |
parent | 42899bcee5a7ed08640e0f958fd9b48e5b21eb3d (diff) | |
download | systemd-ca8228295ec20e561119729a2cf117e4531d7f56.tar.gz |
tree-wide: use devpath_from_devnum() and device_open_from_devnum()
Fixes #24465.
Diffstat (limited to 'src/udev/udevadm-lock.c')
-rw-r--r-- | src/udev/udevadm-lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udevadm-lock.c b/src/udev/udevadm-lock.c index a1e04f6516..07641c24c3 100644 --- a/src/udev/udevadm-lock.c +++ b/src/udev/udevadm-lock.c @@ -7,7 +7,7 @@ #include "blockdev-util.h" #include "btrfs-util.h" -#include "devnum-util.h" +#include "device-util.h" #include "fd-util.h" #include "fdset.h" #include "main-func.h" @@ -321,7 +321,7 @@ int lock_main(int argc, char *argv[], void *userdata) { for (size_t i = 0; i < n_devnos; i++) { _cleanup_free_ char *node = NULL; - r = device_path_make_canonical(S_IFBLK, devnos[i], &node); + r = devpath_from_devnum(S_IFBLK, devnos[i], &node); if (r < 0) return log_error_errno(r, "Failed to format block device path: %m"); |