From 60633629aa82a00a996f7ffcc17f2e385d33a71e Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 4 Oct 2002 10:23:00 +0000 Subject: hurd/ 2002-10-04 Marcus Brinkmann * console.h (struct cons_display): Doc fix. libcons/ 2002-10-04 Marcus Brinkmann * vcons-open.c (cons_vcons_open): Add casts to silence gcc warning. --- libcons/ChangeLog | 5 +++++ libcons/vcons-open.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'libcons') diff --git a/libcons/ChangeLog b/libcons/ChangeLog index 27133687..445e4f2c 100644 --- a/libcons/ChangeLog +++ b/libcons/ChangeLog @@ -1,3 +1,8 @@ +2002-10-04 Marcus Brinkmann + + * vcons-open.c (cons_vcons_open): Add casts to silence gcc + warning. + 2002-09-22 Marcus Brinkmann * vcons-refresh.c (cons_vcons_refresh): Take VCONS->scrolling into diff --git a/libcons/vcons-open.c b/libcons/vcons-open.c index 8841b938..8c34fc5e 100644 --- a/libcons/vcons-open.c +++ b/libcons/vcons-open.c @@ -126,11 +126,11 @@ cons_vcons_open (cons_t cons, vcons_list_t vcons_entry, vcons_t *r_vcons) vcons->state.screen.width = vcons->display->screen.width; vcons->state.screen.height = vcons->display->screen.height; vcons->state.screen.lines = vcons->display->screen.lines; - vcons->state.screen.matrix = ((wchar_t *) vcons->display) - + vcons->display->screen.matrix; + vcons->state.screen.matrix = (conchar_t *) + (((uint32_t *) vcons->display) + vcons->display->screen.matrix); vcons->state.changes.length = vcons->display->changes.length; - vcons->state.changes.buffer = ((uint32_t *) vcons->display) - + vcons->display->changes.buffer; + vcons->state.changes.buffer = (cons_change_t *) + (((uint32_t *) vcons->display) + vcons->display->changes.buffer); /* Request notification messages. */ notify = ports_get_right (vcons); -- cgit v1.2.3