From d90f3dc1baa701ddc856b484aeac7c5a978029ac Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 25 Nov 2002 21:11:58 +0000 Subject: * libc/string/memset.c (memset): Minor optimization: Use new 'd' variable, introduced below, everywhere. --- newlib/libc/string/memset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/string') 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; -- cgit v1.2.3