Remove memcpy prototypes at Russ' request to prevent code from calling
memcpy directly.
This commit is contained in:
parent
6639ce56d9
commit
2c536bff67
1
defs.h
1
defs.h
|
@ -124,7 +124,6 @@ void popcli();
|
|||
// string.c
|
||||
int memcmp(const void*, const void*, uint);
|
||||
void* memmove(void*, const void*, uint);
|
||||
void* memcpy(void*, const void*, uint);
|
||||
void* memset(void*, int, uint);
|
||||
char* safestrcpy(char*, const char*, int);
|
||||
int strlen(const char*);
|
||||
|
|
1
string.c
1
string.c
|
@ -44,6 +44,7 @@ memmove(void *dst, const void *src, uint n)
|
|||
return dst;
|
||||
}
|
||||
|
||||
// memcpy exists to placate GCC. Use memmove.
|
||||
void*
|
||||
memcpy(void *dst, const void *src, uint n)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue