aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/boot/compressed/misc_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/boot/compressed/misc_64.c')
-rw-r--r--arch/x86/boot/compressed/misc_64.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/boot/compressed/misc_64.c b/arch/x86/boot/compressed/misc_64.c
index 8494f0dcff21..8c1573b5d6c7 100644
--- a/arch/x86/boot/compressed/misc_64.c
+++ b/arch/x86/boot/compressed/misc_64.c
@@ -284,7 +284,7 @@ static void putstr(const char *s)
284static void* memset(void* s, int c, unsigned n) 284static void* memset(void* s, int c, unsigned n)
285{ 285{
286 int i; 286 int i;
287 char *ss = (char*)s; 287 char *ss = s;
288 288
289 for (i=0;i<n;i++) ss[i] = c; 289 for (i=0;i<n;i++) ss[i] = c;
290 return s; 290 return s;
@@ -293,7 +293,8 @@ static void* memset(void* s, int c, unsigned n)
293static void* memcpy(void* dest, const void* src, unsigned n) 293static void* memcpy(void* dest, const void* src, unsigned n)
294{ 294{
295 int i; 295 int i;
296 char *d = (char *)dest, *s = (char *)src; 296 const char *s = src;
297 char *d = dest;
297 298
298 for (i=0;i<n;i++) d[i] = s[i]; 299 for (i=0;i<n;i++) d[i] = s[i];
299 return dest; 300 return dest;