From cc3e97aa0141410eb8b05cab34aecf65f44a164c Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 29 Dec 2015 17:35:00 +0100 Subject: fix compiler warnings in hurd/console-client console-client: Fix several compiler warnings. * console-client/bdf.c: Use size_t instead of int. * console-client/driver.c: Remove unused variable errstring. * console-client/pc-kbd.c: Cast sc to scancode_x1 before comparing with enum values. * console-client/vga-dynacolor.h: Use an explicit if in reference counting. * console-client/vga-dynafont.c: Use usigned char for bitmaps. * console-client/vga-support.c: Use unsigned char instead of char. * console-client/vga-support.h: Likewise. * console-client/vga.c: Use conchar_attr_equal instead of casting structures to integers. * hurd/console.h: Add conchar_attr_equal to compare conchar_attr_t structures. --- console-client/vga-support.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'console-client/vga-support.c') diff --git a/console-client/vga-support.c b/console-client/vga-support.c index e8497f82..3a2d7586 100644 --- a/console-client/vga-support.c +++ b/console-client/vga-support.c @@ -216,7 +216,7 @@ vga_fini (void) DATALEN bytes from DATA (if WRITE is not 0). */ static void vga_read_write_font_buffer (int write, int buffer, int index, - char *data, size_t datalen) + unsigned char *data, size_t datalen) { char saved_seq_map; char saved_seq_mode; @@ -271,7 +271,8 @@ vga_read_write_font_buffer (int write, int buffer, int index, /* Write DATALEN bytes from DATA to the font buffer BUFFER, starting from glyph INDEX. */ void -vga_write_font_buffer (int buffer, int index, char *data, size_t datalen) +vga_write_font_buffer (int buffer, int index, unsigned char *data, + size_t datalen) { vga_read_write_font_buffer (1, buffer, index, data, datalen); } @@ -279,7 +280,8 @@ vga_write_font_buffer (int buffer, int index, char *data, size_t datalen) /* Read DATALEN bytes into DATA from the font buffer BUFFER, starting from glyph INDEX. */ void -vga_read_font_buffer (int buffer, int index, char *data, size_t datalen) +vga_read_font_buffer (int buffer, int index, unsigned char *data, + size_t datalen) { vga_read_write_font_buffer (0, buffer, index, data, datalen); } -- cgit v1.2.3