提交 5d98c513 编写于 作者: P Pavel Hrdina

use g_ascii_toupper instead of c_toupper from gnulib

Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
Reviewed-by: NCole Robinson <crobinso@redhat.com>
上级 cc0e7541
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册