compile fixes and cleanups

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-04-09 19:30:57 +02:00
parent 17be44164b
commit 1d383404e3
3 changed files with 2 additions and 4 deletions

View file

@ -28,8 +28,6 @@ struct grub_term_input *grub_term_inputs_disabled;
struct grub_term_output *grub_term_outputs;
struct grub_term_input *grub_term_inputs;
void (*grub_newline_hook) (void) = NULL;
/* Put a Unicode character. */
static void
grub_putcode_dumb (grub_uint32_t code,

View file

@ -1254,7 +1254,7 @@ grub_unicode_shape_code (grub_uint32_t in, grub_uint8_t attr)
for (i = 0; grub_unicode_arabic_shapes[i].code; i++)
if (grub_unicode_arabic_shapes[i].code == in)
{
grub_uint32_t out;
grub_uint32_t out = 0;
switch (attr & (GRUB_UNICODE_GLYPH_ATTRIBUTE_RIGHT_JOINED
| GRUB_UNICODE_GLYPH_ATTRIBUTE_LEFT_JOINED))
{

View file

@ -350,7 +350,7 @@ static struct grub_term_output grub_console_term_output =
.setcolor = grub_console_setcolor,
.getcolor = grub_console_getcolor,
.setcursor = grub_console_setcursor,
.flags = GRUB_TERM_CODE_TYPE_UCS4_VISUAL
.flags = GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS
};
void