mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Fixed compiler warnings
svn path=/trunk/; revision=1442
This commit is contained in:
parent
55feb47d30
commit
9deb8f01da
8 changed files with 17 additions and 52 deletions
|
@ -6,4 +6,4 @@ _memccpy (void *to, const void *from,int c,size_t count)
|
|||
{
|
||||
memcpy(to,from,count);
|
||||
return memchr(to,c,count);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
typedef unsigned int size_t;
|
||||
|
||||
void *
|
||||
memcpy (char *to, char *from, size_t count);
|
||||
#include <crtdll/string.h>
|
||||
|
||||
/* This is the most reliable way to avoid incompatibilities
|
||||
in available built-in functions on various systems. */
|
||||
void *
|
||||
memcpy (char *to, char *from, size_t count)
|
||||
memcpy (void *to, const void *from, size_t count)
|
||||
{
|
||||
register char *f = from;
|
||||
register char *t = to;
|
||||
register char *f = (char *)from;
|
||||
register char *t = (char *)to;
|
||||
register int i = count;
|
||||
|
||||
while (i-- > 0)
|
||||
|
@ -17,15 +14,3 @@ memcpy (char *to, char *from, size_t count)
|
|||
|
||||
return to;
|
||||
}
|
||||
|
||||
void *__constant_memcpy(char *to, char *from, size_t count)
|
||||
{
|
||||
return memcpy(to,from,count);
|
||||
}
|
||||
|
||||
void *__memcpy(char *to, char *from, size_t count)
|
||||
{
|
||||
return memcpy(to,from,count);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
typedef int size_t;
|
||||
#include <crtdll/string.h>
|
||||
|
||||
void * memset(void *src,int val,size_t count)
|
||||
{
|
||||
char *char_src = src;
|
||||
char *char_src = (char *)src;
|
||||
|
||||
while(count>0) {
|
||||
*char_src = val;
|
||||
|
@ -11,19 +11,3 @@ void * memset(void *src,int val,size_t count)
|
|||
}
|
||||
return src;
|
||||
}
|
||||
|
||||
void *__memset_generic(void *src,int val,size_t count)
|
||||
{
|
||||
return memset(src,val,count);
|
||||
}
|
||||
|
||||
void * __constant_c_and_count_memset(void * s, unsigned long pattern, size_t count)
|
||||
{
|
||||
return memset(s,pattern,count);
|
||||
}
|
||||
|
||||
|
||||
void * __constant_c_memset(void *src,int val,size_t count)
|
||||
{
|
||||
return memset(src,val,count);
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||
|
||||
|
||||
#include <crtdll/string.h>
|
||||
#include <string.h>
|
||||
|
||||
void *
|
||||
memchr(const void *s, int c, size_t n)
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
typedef unsigned int size_t;
|
||||
|
||||
void *
|
||||
memcpy (char *to, char *from, size_t count);
|
||||
#include <string.h>
|
||||
|
||||
/* This is the most reliable way to avoid incompatibilities
|
||||
in available built-in functions on various systems. */
|
||||
void *
|
||||
memcpy (char *to, char *from, size_t count)
|
||||
memcpy (void *to, const void *from, size_t count)
|
||||
{
|
||||
register char *f = from;
|
||||
register char *t = to;
|
||||
register char *f = (char *)from;
|
||||
register char *t = (char *)to;
|
||||
register int i = count;
|
||||
|
||||
while (i-- > 0)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
typedef int size_t;
|
||||
#include <string.h>
|
||||
|
||||
void * memset(void *src,int val,size_t count)
|
||||
{
|
||||
char *char_src = src;
|
||||
char *char_src = (char *)src;
|
||||
|
||||
while(count>0) {
|
||||
*char_src = val;
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
#undef memcpy
|
||||
void *memcpy (void *to, const void *from, size_t count)
|
||||
{
|
||||
const char *f = from;
|
||||
char *t = to;
|
||||
const char *f = (char*)from;
|
||||
char *t = (char *)to;
|
||||
int i = count;
|
||||
|
||||
while (i-- > 0)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
void * memset(void *src, int val, size_t count)
|
||||
{
|
||||
char *char_src = src;
|
||||
char *char_src = (char *)src;
|
||||
|
||||
while(count>0) {
|
||||
*char_src = val;
|
||||
|
|
Loading…
Reference in a new issue