Stripped return values, for portability (os_memset on esp8266 does not have them)
This commit is contained in:
parent
75d118b9b3
commit
39aa340f82
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
void* __attribute__((weak)) twinkl_memset(void *ptr, int value, size_t num);
|
||||
void* __attribute__((weak)) twinkl_memcpy(void * destination, const void * source, size_t num);
|
||||
void __attribute__((weak)) twinkl_memset(void *ptr, int value, size_t num);
|
||||
void __attribute__((weak)) twinkl_memcpy(void *destination, const void *source, size_t num);
|
||||
|
||||
#endif
|
||||
|
|
8
util.c
8
util.c
|
@ -2,10 +2,10 @@
|
|||
|
||||
#include "util.h"
|
||||
|
||||
void* twinkl_memset(void *ptr, int value, size_t num) {
|
||||
return memset(ptr, value, num);
|
||||
void twinkl_memset(void *ptr, int value, size_t num) {
|
||||
memset(ptr, value, num);
|
||||
}
|
||||
|
||||
void* twinkl_memcpy(void *destination, const void *source, size_t num) {
|
||||
return memcpy(destination, source, num);
|
||||
void twinkl_memcpy(void *destination, const void *source, size_t num) {
|
||||
memcpy(destination, source, num);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue