From: ljsebald <ljs...@us...> - 2023-08-29 21:53:16
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A KallistiOS implementation of conio. ". The branch, master has been updated via 95323837e6b19ed78a965d24e29a0720105e3967 (commit) from 63be6e2616ddb99807003645639b85e96de2e4ab (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 95323837e6b19ed78a965d24e29a0720105e3967 Author: Lawrence Sebald <ljs...@us...> Date: Tue Aug 29 17:52:53 2023 -0400 Clean up warnings and update copyright. ----------------------------------------------------------------------- Summary of changes: Makefile | 4 ++-- conio.c | 13 +++++++------ draw.c | 11 +++++------ input.c | 8 ++++---- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index a170ecc..af6c197 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # KallistiOS ##version## # -# addons/libconio Makefile -# (c)2002 Dan Potter +# libconio Makefile +# Copyright (C) 2002 Megan Potter TARGET = libconio.a OBJS = conio.o input.o draw.o diff --git a/conio.c b/conio.c index e8d5dca..7a0757c 100644 --- a/conio.c +++ b/conio.c @@ -1,19 +1,20 @@ /* KallistiOS ##version## - conio.c + conio.c + Copyright (C) 2002 Megan Potter - (c)2002 Dan Potter - - Adapted from Kosh, (c)2000 Jordan DeLong + Adapted from Kosh, Copyright (C) 2000 Jordan DeLong */ #include <stdio.h> #include <string.h> #include <assert.h> +#include <kos/thread.h> #include <kos/sem.h> #include <dc/maple/keyboard.h> #include <dc/scif.h> +#include <arch/arch.h> #include "conio.h" /* the cursor */ @@ -119,7 +120,7 @@ void conio_gotoxy(int x, int y) { case CONIO_TTY_SERIAL: { char tmp[256]; sprintf(tmp, "\x1b[%d;%df", x, y); - scif_write_buffer(tmp, strlen(tmp), 1); + scif_write_buffer((unsigned char *)tmp, strlen(tmp), 1); break; } case CONIO_TTY_STDIO: { @@ -131,7 +132,7 @@ void conio_gotoxy(int x, int y) { case CONIO_TTY_DBGIO: { char tmp[256]; sprintf(tmp, "\x1b[%d;%df", x, y); - dbgio_write_buffer(tmp, strlen(tmp)); + dbgio_write_buffer((unsigned char *)tmp, strlen(tmp)); break; } } diff --git a/draw.c b/draw.c index c7eb38c..cc7c9b5 100644 --- a/draw.c +++ b/draw.c @@ -1,10 +1,9 @@ /* KallistiOS ##version## - conio.c + draw.c + Copyright (C) 2002 Megan Potter - (c)2002 Dan Potter - - Adapted from Kosh, (c)2000 Jordan DeLong + Adapted from Kosh, Copyright (C) 2000 Jordan DeLong */ @@ -40,8 +39,8 @@ void conio_draw_shutdown() { /* Draw one font character (6x12) */ static void draw_char(float x1, float y1, float z1, float a, float r, - float g, float b, int c) { - pvr_vertex_t vert; + float g, float b, int c) { + pvr_vertex_t vert; int ix, iy; float u1, v1, u2, v2; diff --git a/input.c b/input.c index 22295d0..a61a0ae 100644 --- a/input.c +++ b/input.c @@ -1,10 +1,9 @@ /* KallistiOS ##version## - input.c + input.c + Copyright (C) 2002 Megan Potter - (c)2002 Dan Potter - - Adapted from Kosh, (c)2000 Jordan DeLong + Adapted from Kosh, Copyright (C) 2000 Jordan DeLong */ @@ -13,6 +12,7 @@ #include <stdlib.h> #include <assert.h> #include <kos/limits.h> +#include <kos/thread.h> #include <kos/sem.h> #include <dc/maple/keyboard.h> #include "conio.h" hooks/post-receive -- A KallistiOS implementation of conio. |