Skip to content
Snippets Groups Projects
Commit abfcf15d authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Cast memcpy #defined as bcopy to void, to avoid use of unspecified values.

Clarify a few comments.
parent 1650f15d
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment