1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-12 07:42:56 +00:00

use g_ascii_toupper instead of c_toupper from gnulib

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Pavel Hrdina 2019-11-18 15:16:33 +01:00
parent cc0e7541ad
commit 5d98c513c5
2 changed files with 2 additions and 4 deletions

@ -21,7 +21,6 @@
#include <glib/gprintf.h>
#include <locale.h>
#include "c-ctype.h"
#include "virstring.h"
#include "virthread.h"
#include "viralloc.h"
@ -1329,7 +1328,7 @@ virStringToUpper(char **dst, const char *src)
return -1;
for (i = 0; src[i]; i++) {
cap[i] = c_toupper(src[i]);
cap[i] = g_ascii_toupper(src[i]);
if (cap[i] == '-')
cap[i] = '_';
}

@ -29,7 +29,6 @@
# include <poll.h>
# include <unistd.h>
# include <signal.h>
# include <c-ctype.h>
# include "internal.h"
# include "virsh.h"
@ -399,7 +398,7 @@ static char
virshGetEscapeChar(const char *s)
{
if (*s == '^')
return CONTROL(c_toupper(s[1]));
return CONTROL(g_ascii_toupper(s[1]));
return *s;
}