aboutsummaryrefslogtreecommitdiff
path: root/src/system.c
diff options
context:
space:
mode:
authorpk33 <pk33@pk33.space>2024-11-03 01:39:28 +0100
committerpk33 <pk33@pk33.space>2024-11-03 01:39:28 +0100
commitee7cd3e6b622a8c40236ac26270e369bc28af007 (patch)
treed5473064793f559d6677de193b4c827cf6623d2e /src/system.c
parentdd5240ff7a87e85bca15b294236220ac0576055f (diff)
downloadengine33-ee7cd3e6b622a8c40236ac26270e369bc28af007.tar.gz
modesetting tweaks
Diffstat (limited to 'src/system.c')
-rw-r--r--src/system.c11
1 files changed, 8 insertions, 3 deletions
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;
}