commit f3073a83ac278dec8774e0aee1356b757fb48b04
Author: Quentin Rameau <[email protected]>
AuthorDate: Fri Feb 17 00:39:11 2017 +0100
Commit: Quentin Rameau <[email protected]>
CommitDate: Fri Feb 17 11:00:33 2017 +0100
[libc] Make memset style consistent with the rest
diff --git a/libc/src/memset.c b/libc/src/memset.c
index 2222ce1..8a80c64 100644
--- 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;
}