mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-26 14:35:18 +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:
parent
cc0e7541ad
commit
5d98c513c5
@ -21,7 +21,6 @@
|
|||||||
#include <glib/gprintf.h>
|
#include <glib/gprintf.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
|
||||||
#include "c-ctype.h"
|
|
||||||
#include "virstring.h"
|
#include "virstring.h"
|
||||||
#include "virthread.h"
|
#include "virthread.h"
|
||||||
#include "viralloc.h"
|
#include "viralloc.h"
|
||||||
@ -1329,7 +1328,7 @@ virStringToUpper(char **dst, const char *src)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
for (i = 0; src[i]; i++) {
|
for (i = 0; src[i]; i++) {
|
||||||
cap[i] = c_toupper(src[i]);
|
cap[i] = g_ascii_toupper(src[i]);
|
||||||
if (cap[i] == '-')
|
if (cap[i] == '-')
|
||||||
cap[i] = '_';
|
cap[i] = '_';
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
# include <poll.h>
|
# include <poll.h>
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
# include <signal.h>
|
# include <signal.h>
|
||||||
# include <c-ctype.h>
|
|
||||||
|
|
||||||
# include "internal.h"
|
# include "internal.h"
|
||||||
# include "virsh.h"
|
# include "virsh.h"
|
||||||
@ -399,7 +398,7 @@ static char
|
|||||||
virshGetEscapeChar(const char *s)
|
virshGetEscapeChar(const char *s)
|
||||||
{
|
{
|
||||||
if (*s == '^')
|
if (*s == '^')
|
||||||
return CONTROL(c_toupper(s[1]));
|
return CONTROL(g_ascii_toupper(s[1]));
|
||||||
|
|
||||||
return *s;
|
return *s;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user