shithub: scc

Download patch

ref: c2db791788ea4eb92a2e1eb5ee77c22dfb74adb5
parent: 1ee8ce7474148da51b4b0bfc8e1e1a87c00ed04e
author: Quentin Rameau <quinq@fifth.space>
date: Thu Feb 16 19:32:17 EST 2017

[libc] Remove a cast from memcpy

--- a/libc/src/memcpy.c
+++ b/libc/src/memcpy.c
@@ -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++;