From ca3794062ea171d3d57b77a52a2c035c1a05420a Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Thu, 28 Apr 2016 10:41:48 -0400 Subject: [PATCH] coco3: fix compiler warnings --- Kernel/platform-coco3/devtty.c | 1 + Kernel/platform-coco3/video.c | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Kernel/platform-coco3/devtty.c b/Kernel/platform-coco3/devtty.c index 428ae762..250328b3 100644 --- a/Kernel/platform-coco3/devtty.c +++ b/Kernel/platform-coco3/devtty.c @@ -9,6 +9,7 @@ #include #include #include +#include #undef DEBUG /* UNdefine to delete debug code sequences */ diff --git a/Kernel/platform-coco3/video.c b/Kernel/platform-coco3/video.c index b0a1d96a..190d0bf3 100644 --- a/Kernel/platform-coco3/video.c +++ b/Kernel/platform-coco3/video.c @@ -1,7 +1,8 @@ #include #include +#include -extern video_cmd( char *rlt_data); +extern void video_cmd( char *rlt_data); /* These are routines stolen from the stock vt.c's VT_SIMPLE code, and modified to suite multiple vts @@ -52,7 +53,7 @@ void cursor_on(int8_t y, int8_t x) void plot_char(int8_t y, int8_t x, uint16_t c) { - char *p=char_addr(y,x); + unsigned char *p=char_addr(y,x); map_for_video(); *p++ = VT_MAP_CHAR(c); *p = curpty->attr; @@ -165,12 +166,12 @@ int gfx_draw_op(uarg_t arg, char *ptr) break; } if (arg == GFXIOC_READ) { - video_read( (char *)0x5e00 ); + video_read( (unsigned char *)0x5e00 ); if (uput( (char *)0x5e00 + 8, ptr+10, l-2)) err = EFAULT; break; } - video_write( (char *)0x5e00 ); + video_write( (unsigned char *)0x5e00 ); } ret: map_for_kernel(); -- 2.34.1