* libc/string/memset.c (memset): Minor optimization: Use new 'd' variable,

introduced below, everywhere.
This commit is contained in:
Christopher Faylor 2002-11-25 21:11:58 +00:00
parent f24585c6bb
commit d90f3dc1ba
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-11-25 Christopher Faylor <cgf@redhat.com>
* libc/string/memset.c (memset): Minor optimization: Use new 'd'
variable, introduced below, everywhere.
2002-11-25 Kazu Hirata <kazu@cs.umass.edu>
* libc/string/memset.c (memset): Make it safe even if

View File

@ -103,7 +103,7 @@ _DEFUN (memset, (m, c, n),
while (n--)
{
*s++ = (char)c;
*s++ = (char)d;
}
return m;