Fix warning

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2009-12-02 14:42:28 +01:00
parent d9b091d9ff
commit f505738643

View file

@ -206,7 +206,7 @@ grub_get_dirname (const char *file_path)
} }
static __inline int static __inline int
isxdigit (char c) my_isxdigit (char c)
{ {
return ((c >= '0' && c <= '9') return ((c >= '0' && c <= '9')
|| (c >= 'a' && c <= 'f') || (c >= 'a' && c <= 'f')
@ -261,7 +261,7 @@ grub_gui_parse_color (const char *s, grub_gui_color_t *color)
/* Count the hexits to determine the format. */ /* Count the hexits to determine the format. */
int hexits = 0; int hexits = 0;
const char *end = s; const char *end = s;
while (isxdigit (*end)) while (my_isxdigit (*end))
{ {
end++; end++;
hexits++; hexits++;