diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-05-05 21:06:35 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-05-06 18:03:35 -0400 |
commit | 8905b82df8a6dc1668d8e817924fb7b8cd574bdc (patch) | |
tree | 6355ff51a5de738a202938ae81c8c37f163eb501 /include | |
parent | fb1d51d4da8f303e92c8b30e4503dc7f9c01b3a8 (diff) |
use "const void *" rather than "char *" for memcmp, etc
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/X11/IntrinsicI.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/X11/IntrinsicI.h b/include/X11/IntrinsicI.h index d477c1d..c6d5773 100644 --- a/include/X11/IntrinsicI.h +++ b/include/X11/IntrinsicI.h @@ -117,15 +117,15 @@ SOFTWARE. #include <X11/Xfuncs.h> #define XtMemmove(dst, src, size) \ - if ((char *)(dst) != (char *)(src)) { \ - (void) memcpy((char *) (dst), (char *) (src), (size_t) (size)); \ + if ((const void *)(dst) != (const void *)(src)) { \ + (void) memcpy((void *) (dst), (const void *) (src), (size_t) (size)); \ } #define XtBZero(dst, size) \ - memset((char *) (dst), 0, (size_t) (size)) + memset((void *) (dst), 0, (size_t) (size)) #define XtMemcmp(b1, b2, size) \ - memcmp((char *) (b1), (char *) (b2), (size_t) (size)) + memcmp((const void *) (b1), (const void *) (b2), (size_t) (size)) /**************************************************************** |