aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-04-19 11:03:44 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-04-19 11:03:44 -0700
commit82885d35ea1b52982ebcf3a58e9d328cfa4e933a (patch)
tree9fecd2ff65802efe6fdd55092c207511ac334a79
parent471886467ee05046e8bd9e3621878e06ca9cbd5f (diff)
fix: minor libc changes
-rw-r--r--include/libc.h6
-rw-r--r--sys/cc/rules.mk0
-rw-r--r--sys/libc/string.c8
3 files changed, 7 insertions, 7 deletions
diff --git a/include/libc.h b/include/libc.h
index 7d42f97..133534f 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -5,8 +5,8 @@
void *memset(void*, int, intptr);
void *memcopy(void*, void*, intptr);
void *memmove(void*, void*, intptr);
-int memcmp(void*, void*, intptr);
+int memcmp(void*, void*, intptr);
-int strlen(byte* s);
+int strlen(byte* s);
-error printf(byte* fmt, ...);
+error printf(byte* fmt, ...);
diff --git a/sys/cc/rules.mk b/sys/cc/rules.mk
deleted file mode 100644
index e69de29..0000000
--- a/sys/cc/rules.mk
+++ /dev/null
diff --git a/sys/libc/string.c b/sys/libc/string.c
index 8fcdfd2..0e41efa 100644
--- a/sys/libc/string.c
+++ b/sys/libc/string.c
@@ -2,7 +2,7 @@
#include <libc.h>
void*
-memcopy(void* dst, void* src, intptr n)
+memcopy(void *dst, void *src, intptr n)
{
byte *e, *s, *d;
@@ -16,7 +16,7 @@ memcopy(void* dst, void* src, intptr n)
}
void*
-memmove(void* dst, void* src, intptr n)
+memmove(void *dst, void *src, intptr n)
{
byte *e, *s, *d;
s = src;
@@ -39,7 +39,7 @@ memmove(void* dst, void* src, intptr n)
}
void*
-memset(void* buf, int val, intptr n)
+memset(void *buf, int val, intptr n)
{
byte *b, *e;
b = buf;
@@ -52,7 +52,7 @@ memset(void* buf, int val, intptr n)
}
int
-memcmp(void* lhs, void* rhs, intptr n)
+memcmp(void *lhs, void *rhs, intptr n)
{
byte *bl, *br, *e;