From: Rich Felker Date: Tue, 26 Apr 2011 16:28:41 +0000 (-0400) Subject: function signature fix: add const qualifier to mempcpy src arg X-Git-Tag: v0.7.10~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b5b41212a686849fe061b8c4bb80d38f893d00c7;p=oweals%2Fmusl.git function signature fix: add const qualifier to mempcpy src arg --- diff --git a/include/string.h b/include/string.h index 94188bc0..f95a15c9 100644 --- a/include/string.h +++ b/include/string.h @@ -75,7 +75,7 @@ char *strchrnul(const char *, int); char *strcasestr(const char *, const char *); char *strsep(char **, const char *); void *memrchr(const void *, int, size_t); -void *mempcpy(void *, void *, size_t); +void *mempcpy(void *, const void *, size_t); #endif #ifdef __cplusplus diff --git a/src/string/mempcpy.c b/src/string/mempcpy.c index e54251cd..1b323f1e 100644 --- a/src/string/mempcpy.c +++ b/src/string/mempcpy.c @@ -1,6 +1,6 @@ #include -void *mempcpy(void *dest, void *src, size_t n) +void *mempcpy(void *dest, const void *src, size_t n) { memcpy(dest, src, n); return (char *)dest + n;