efi: Fix warning about discarding const qualifier
authorMatt Fleming <matt.fleming@intel.com>
Fri, 19 Oct 2012 16:02:20 +0000 (17:02 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 26 Oct 2012 15:17:16 +0000 (16:17 +0100)
Cast away the const-ness of cp865_8x16_font_data when passing it to
unpack_font() so that gcc doesn't generate a warning.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/lib/sys/vesa/efi/initvesa.c

index 2144f14..ae431be 100644 (file)
@@ -508,7 +508,8 @@ static int vesacon_set_mode(int *x, int *y)
      * file support should be exposed via firmware structure)
      */
     __vesacon_font_height = cp865_8x16_font_height;
-    unpack_font((uint8_t *) __vesacon_graphics_font, cp865_8x16_font_data,
+    unpack_font((uint8_t *) __vesacon_graphics_font,
+               (uint8_t *)cp865_8x16_font_data,
                __vesacon_font_height);
    
     /* Free any existing data structures */