From a7ed32e2063aa39ad4f6e45080924f245ee96e97 Mon Sep 17 00:00:00 2001 From: Aurora Wright Date: Sun, 21 May 2017 19:59:02 +0200 Subject: [PATCH] Consistency --- source/memory.c | 7 +++---- source/memory.h | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/source/memory.c b/source/memory.c index 814e71b..d63dad4 100644 --- a/source/memory.c +++ b/source/memory.c @@ -36,13 +36,12 @@ void memcpy(void *dest, const void *src, u32 size) destc[i] = srcc[i]; } -void *memset(void *dest, u32 value, u32 size) +void memset(void *dest, u32 filler, u32 size) { u8 *destc = (u8 *)dest; - for(u32 i = 0; i < size; i++) destc[i] = (u8)value; - - return dest; + for(u32 i = 0; i < size; i++) + destc[i] = (u8)filler; } void memset32(void *dest, u32 filler, u32 size) diff --git a/source/memory.h b/source/memory.h index 04de7b2..38460d6 100644 --- a/source/memory.h +++ b/source/memory.h @@ -30,7 +30,7 @@ #include "types.h" void memcpy(void *dest, const void *src, u32 size); -void *memset(void *dest, u32 value, u32 size) __attribute__((used)); +void memset(void *dest, u32 value, u32 size) __attribute__((used)); void memset32(void *dest, u32 filler, u32 size); int memcmp(const void *buf1, const void *buf2, u32 size); u8 *memsearch(u8 *startPos, const void *pattern, u32 size, u32 patternSize);