diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-24 17:40:35 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-27 18:56:14 +0200 |
commit | 9971459d19e93ff652eeaff165da72e51b256299 (patch) | |
tree | 75896fc8a2033552451806173c7fe31cbb4d45c6 /libdm | |
parent | e585c10fade006e5fe3643b76b09501d54c20c9b (diff) | |
download | lvm2-9971459d19e93ff652eeaff165da72e51b256299.tar.gz |
make: replace legacy use rindex with strrchr
Seems already dropped by some systems.
Reported-by: adamboardman of gemian
Diffstat (limited to 'libdm')
-rw-r--r-- | libdm/libdm-deptree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c index d7fb5ef13..c14b6ef56 100644 --- a/libdm/libdm-deptree.c +++ b/libdm/libdm-deptree.c @@ -566,7 +566,7 @@ static struct dm_tree_node *_find_dm_tree_node_by_uuid(struct dm_tree *dtree, default_uuid_prefix = dm_uuid_prefix(); default_uuid_prefix_len = strlen(default_uuid_prefix); - if (suffix_list && (suffix_position = rindex(uuid, '-'))) { + if (suffix_list && (suffix_position = strrchr(uuid, '-'))) { while ((suffix = suffix_list[i++])) { if (strcmp(suffix_position + 1, suffix)) continue; |