From ee7cd3e6b622a8c40236ac26270e369bc28af007 Mon Sep 17 00:00:00 2001 From: pk33 Date: Sun, 3 Nov 2024 01:39:28 +0100 Subject: modesetting tweaks --- src/system.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/system.c') diff --git a/src/system.c b/src/system.c index ffb8c4a..cff4f54 100644 --- a/src/system.c +++ b/src/system.c @@ -1,6 +1,11 @@ #include "sys/ioctl.h" #include "errno.h" +#include "stdarg.h" +#include "stdio.h" +#include "unistd.h" +#include "string.h" + #include "types.h" @@ -15,15 +20,15 @@ err e33_ioctl( Size fd, unsigned long req, void *arg ) return ret; } -boolean _strcomp( String s1, String s2 ) +boolean strcomp( String s1, String s2 ) { while( (*s1 != '\0') && (*s2 != '\0') ) { if( (*s1++) != (*s2++) ) { - return E33_EXIT_SUCCESS; + return E33_FALSE; } } - return E33_EXIT_FAILURE; + return E33_TRUE; } -- cgit v1.2.3