]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
use g_ascii_islower instead of c_islower from gnulib
authorPavel Hrdina <phrdina@redhat.com>
Mon, 18 Nov 2019 14:16:54 +0000 (15:16 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 10 Dec 2019 12:49:24 +0000 (13:49 +0100)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/util/virutil.c

index f965bb0e5d60f4bf9cdd4e52c850a4d14ab5d89b..f3cf4943535d25e1193f7081cb7d3a838ccedc42 100644 (file)
@@ -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;