summaryrefslogtreecommitdiff
path: root/libc/string/memset.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/memset.c')
-rw-r--r--libc/string/memset.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/libc/string/memset.c b/libc/string/memset.c
index 9daf59f69..2a7c19dee 100644
--- a/libc/string/memset.c
+++ b/libc/string/memset.c
@@ -17,21 +17,14 @@
Wvoid *Wmemset(Wvoid *s, Wint c, size_t n)
{
register Wuchar *p = (Wuchar *) s;
-#ifdef __BCC__
- /* bcc can optimize the counter if it thinks it is a pointer... */
- register const char *np = (const char *) n;
-#else
-# define np n
-#endif
- while (np) {
+ while (n) {
*p++ = (Wuchar) c;
- --np;
+ --n;
}
return s;
}
-#undef np
#ifndef WANT_WIDE
libc_hidden_def(memset)