mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
use g_ascii_islower instead of c_islower from gnulib
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
a405834a5d
commit
c1024416f4
@ -393,11 +393,11 @@ int virDiskNameParse(const char *name, int *disk, int *partition)
|
||||
}
|
||||
}
|
||||
|
||||
if (!ptr || !c_islower(*ptr))
|
||||
if (!ptr || !g_ascii_islower(*ptr))
|
||||
return -1;
|
||||
|
||||
for (i = 0; *ptr; i++) {
|
||||
if (!c_islower(*ptr))
|
||||
if (!g_ascii_islower(*ptr))
|
||||
break;
|
||||
|
||||
idx = (idx + (i < 1 ? 0 : 1)) * 26;
|
||||
|
Loading…
x
Reference in New Issue
Block a user