fix compiler warning/errors with conversion from a void* to a char*

This commit is contained in:
jdunn%netscape.com 1999-04-13 20:27:17 +00:00
parent 8be0ea87e3
commit 57e6713c2c
3 changed files with 6 additions and 6 deletions

View File

@ -84,9 +84,9 @@ swapfunc(char *a, char *b, int n, int swaptype)
*(long *)(a) = *(long *)(b); \
*(long *)(b) = t; \
} else \
swapfunc(a, b, es, swaptype)
swapfunc((char *)a, (char*)b, es, swaptype)
#define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype)
#define vecswap(a, b, n) if ((n) > 0) swapfunc((char *)a, (char *)b, n, swaptype)
static INLINE char *
med3(char *a, char *b, char *c, cmp_t* cmp, void *data)

View File

@ -84,9 +84,9 @@ swapfunc(char *a, char *b, int n, int swaptype)
*(long *)(a) = *(long *)(b); \
*(long *)(b) = t; \
} else \
swapfunc(a, b, es, swaptype)
swapfunc((char *)a, (char*)b, es, swaptype)
#define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype)
#define vecswap(a, b, n) if ((n) > 0) swapfunc((char *)a, (char *)b, n, swaptype)
static INLINE char *
med3(char *a, char *b, char *c, cmp_t* cmp, void *data)

View File

@ -84,9 +84,9 @@ swapfunc(char *a, char *b, int n, int swaptype)
*(long *)(a) = *(long *)(b); \
*(long *)(b) = t; \
} else \
swapfunc(a, b, es, swaptype)
swapfunc((char *)a, (char*)b, es, swaptype)
#define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype)
#define vecswap(a, b, n) if ((n) > 0) swapfunc((char *)a, (char *)b, n, swaptype)
static INLINE char *
med3(char *a, char *b, char *c, cmp_t* cmp, void *data)