diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-17 00:58:39 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-17 00:58:39 +0200 |
commit | 69ed661a488c0e02bf5fee3dc21e6a31a99a8d85 (patch) | |
tree | d4172bd2932f8b163b58651dd2f1e14f535304c0 /src/string/memccpy.c | |
parent | m fixes (diff) | |
download | slibc-69ed661a488c0e02bf5fee3dc21e6a31a99a8d85.tar.gz slibc-69ed661a488c0e02bf5fee3dc21e6a31a99a8d85.tar.bz2 slibc-69ed661a488c0e02bf5fee3dc21e6a31a99a8d85.tar.xz |
fix errors
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/string/memccpy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/string/memccpy.c b/src/string/memccpy.c index 4212419..0c73f8b 100644 --- a/src/string/memccpy.c +++ b/src/string/memccpy.c @@ -33,9 +33,9 @@ * number of copied characters; the address of * one character passed the last written character. */ -void* memccpy(void* restrict whither, const void* restrict whence, int c, size_t size) +void* (memccpy)(void* restrict whither, const void* restrict whence, int c, size_t size) { - char* stop = memchr(whence, c, size); + char* stop = (memchr)(whence, c, size); void* r = NULL; if (stop != NULL) size = (size_t)(stop - (const char*)whence), r = whither + size; @@ -60,9 +60,9 @@ void* memccpy(void* restrict whither, const void* restrict whence, int c, size_t * number of copied characters; the address of * one character passed the last written character. */ -void* memcmove(void* whither, const void* whence, int c, size_t size) +void* (memcmove)(void* whither, const void* whence, int c, size_t size) { - char* stop = memchr(whence, c, size); + char* stop = (memchr)(whence, c, size); void* r = NULL; if (stop != NULL) size = (size_t)(stop - (const char*)whence), r = whither + size; |