diff options
author | Christopher Faylor <me@cgf.cx> | 2002-11-25 21:11:58 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-11-25 21:11:58 +0000 |
commit | d90f3dc1baa701ddc856b484aeac7c5a978029ac (patch) | |
tree | 5aebbebb47feff4690580e861878485f38f283ec /newlib/libc/string/memset.c | |
parent | f24585c6bb565026fe4e98f4b48219487c5877a8 (diff) | |
download | cygnal-d90f3dc1baa701ddc856b484aeac7c5a978029ac.tar.gz cygnal-d90f3dc1baa701ddc856b484aeac7c5a978029ac.tar.bz2 cygnal-d90f3dc1baa701ddc856b484aeac7c5a978029ac.zip |
* libc/string/memset.c (memset): Minor optimization: Use new 'd' variable,
introduced below, everywhere.
Diffstat (limited to 'newlib/libc/string/memset.c')
-rw-r--r-- | newlib/libc/string/memset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/string/memset.c b/newlib/libc/string/memset.c index eceff8e9c..41b7d03ba 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; |