]> git.ipfire.org Git - thirdparty/systemd.git/commit
storagetm: ensure we pass dev_t* to sd_device_get_devnum
authorMike Gilbert <floppym@gentoo.org>
Fri, 29 Dec 2023 18:45:26 +0000 (13:45 -0500)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 2 Jan 2024 20:37:25 +0000 (05:37 +0900)
commit049f178b805720908459208d32cd374a40a064fc
tree89af6e75eea7330e585764dd95862d7e8a26f8dd
parente40a67809b8a5a6988ce094de37c06c6f6b3afcf
storagetm: ensure we pass dev_t* to sd_device_get_devnum

On MIPS32 OABI, st_rdev is unsigned long, not dev_t. Use a temporary
variable to avoid an incompatible pointer.

Bug: https://bugs.gentoo.org/920576
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=21278
Fixes: https://github.com/systemd/systemd/issues/30626
src/storagetm/storagetm.c