From 82885d35ea1b52982ebcf3a58e9d328cfa4e933a Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 19 Apr 2020 11:03:44 -0700 Subject: fix: minor libc changes --- include/libc.h | 6 +++--- sys/cc/rules.mk | 0 sys/libc/string.c | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 sys/cc/rules.mk 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 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 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; -- cgit v1.2.1