aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-25 21:11:58 +0000
committerChristopher Faylor <me@cgf.cx>2002-11-25 21:11:58 +0000
commitd90f3dc1baa701ddc856b484aeac7c5a978029ac (patch)
tree5aebbebb47feff4690580e861878485f38f283ec /newlib
parentf24585c6bb565026fe4e98f4b48219487c5877a8 (diff)
downloadnewlib-d90f3dc1baa701ddc856b484aeac7c5a978029ac.zip
newlib-d90f3dc1baa701ddc856b484aeac7c5a978029ac.tar.gz
newlib-d90f3dc1baa701ddc856b484aeac7c5a978029ac.tar.bz2
* libc/string/memset.c (memset): Minor optimization: Use new 'd' variable,
introduced below, everywhere.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/string/memset.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 10d5f90..bc0eec6 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -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
diff --git a/newlib/libc/string/memset.c b/newlib/libc/string/memset.c
index eceff8e..41b7d03 100644
--- a/newlib/libc/string/memset.c
+++ b/newlib/libc/string/memset.c
@@ -103,7 +103,7 @@ _DEFUN (memset, (m, c, n),
while (n--)
{
- *s++ = (char)c;
+ *s++ = (char)d;
}
return m;