[hackers] [scc] [libc] Remove a cast from memcpy || Quentin Rameau
commit d7decfa41b7613388a4a30e8c75463f572b1abd9
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Fri Feb 17 00:32:17 2017 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Fri Feb 17 10:51:34 2017 +0100
[libc] Remove a cast from memcpy
diff --git a/libc/src/memcpy.c b/libc/src/memcpy.c
index 88a74d4..d566fc3 100644
--- a/libc/src/memcpy.c
+++ b/libc/src/memcpy.c
_AT_@ -5,7 +5,8 @@
void *
memcpy(void *dst, const void *src, size_t n)
{
- char *s1 = dst, *s2 = (char *) src;
+ char *s1 = dst;
+ const char *s2 = src;
while (n-- > 0)
*s1++ = *s2++;
Received on Fri Feb 17 2017 - 10:52:56 CET
This archive was generated by hypermail 2.3.0
: Fri Feb 17 2017 - 11:00:50 CET