scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit f3073a83ac278dec8774e0aee1356b757fb48b04
parent 743f3cacf35cccdcdb42e2e06478b42d9333e507
Author: Quentin Rameau <quinq@fifth.space>
Date:   Fri, 17 Feb 2017 00:39:11 +0100

[libc] Make memset style consistent with the rest

Diffstat:
Mlibc/src/memset.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libc/src/memset.c b/libc/src/memset.c @@ -5,9 +5,9 @@ void * memset(void *s, int c, size_t n) { - char *bp; + char *m = s; - for (bp = s; n-- > 0; *bp++ = c) - /* nothing */; + while (n-- > 0) + *m++ = c; return s; }