summaryrefslogtreecommitdiff
path: root/libcons
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-10-04 10:23:00 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-10-04 10:23:00 +0000
commit60633629aa82a00a996f7ffcc17f2e385d33a71e (patch)
tree3725bec1f958ef59fbd08c574d9719cb3d5e5634 /libcons
parente8800e674058ea33a8d43e5976277a18b8102233 (diff)
hurd/
2002-10-04 Marcus Brinkmann <marcus@gnu.org> * console.h (struct cons_display): Doc fix. libcons/ 2002-10-04 Marcus Brinkmann <marcus@gnu.org> * vcons-open.c (cons_vcons_open): Add casts to silence gcc warning.
Diffstat (limited to 'libcons')
-rw-r--r--libcons/ChangeLog5
-rw-r--r--libcons/vcons-open.c8
2 files changed, 9 insertions, 4 deletions
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 <marcus@gnu.org>
+
+ * vcons-open.c (cons_vcons_open): Add casts to silence gcc
+ warning.
+
2002-09-22 Marcus Brinkmann <marcus@gnu.org>
* 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);