ref: 4100a101f53391e3063652f203272462dc8537d7
parent: c2db791788ea4eb92a2e1eb5ee77c22dfb74adb5
author: Quentin Rameau <[email protected]>
date: Thu Feb 16 19:39:11 EST 2017
[libc] Make memset style consistent with the rest
--- 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;
}