From abfcf15d485867a91e5c0cf798ed6cd19c87c8c9 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 23 Nov 1998 04:29:01 +0000 Subject: [PATCH] Cast memcpy #defined as bcopy to void, to avoid use of unspecified values. Clarify a few comments. --- include/ac/string.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ac/string.h b/include/ac/string.h index 2b407e7eb3..6a64074e6f 100644 --- a/include/ac/string.h +++ b/include/ac/string.h @@ -28,8 +28,8 @@ # endif # ifndef HAVE_MEMCPY -# define memcpy(d, s, n) bcopy ((s), (d), (n)) -# define memmove(d, s, n) bcopy ((s), (d), (n)) +# define memcpy(d, s, n) ((void) bcopy ((s), (d), (n))) +# define memmove(d, s, n) ((void) bcopy ((s), (d), (n))) # endif #endif @@ -37,13 +37,13 @@ /* strdup() is missing, declare our own version */ extern char *strdup( const char *s ); #else - /* some systems fail to declare strdup altogether */ + /* some systems have strdup, but fail to declare it */ extern char *strdup(); #endif /* * some systems fail to declare strcasecmp() and strncasecmp() - * we need them defined so we obtain pointers to them + * we need them declared so we can obtain pointers to them */ extern int strcasecmp(), strncasecmp(); -- 2.39.5