tree-wide: use sd_device_new_from_stat_rdev() whereever appropriate

This commit is contained in:
Lennart Poettering
2021-02-22 17:38:57 +01:00
parent 5735ab0979
commit 930aa88f04
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -436,7 +436,7 @@ static char* disk_description(const char *path) {
if (!S_ISBLK(st.st_mode))
return NULL;
if (sd_device_new_from_devnum(&device, 'b', st.st_rdev) < 0)
if (sd_device_new_from_stat_rdev(&device, &st) < 0)
return NULL;
NULSTR_FOREACH(i, name_fields)