--- ray/src/px/x11image.c 2005/01/07 22:05:30 2.70 +++ ray/src/px/x11image.c 2005/07/24 19:53:08 2.71 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: x11image.c,v 2.70 2005/01/07 22:05:30 greg Exp $"; +static const char RCSid[] = "$Id: x11image.c,v 2.71 2005/07/24 19:53:08 greg Exp $"; #endif /* * x11image.c - driver for X-windows @@ -397,9 +397,9 @@ init( /* get data and open window */ windowName.encoding = iconName.encoding = XA_STRING; windowName.format = iconName.format = 8; windowName.value = (u_char *)name; - windowName.nitems = strlen(windowName.value); + windowName.nitems = strlen((char *)windowName.value); iconName.value = (u_char *)name; - iconName.nitems = strlen(windowName.value); + iconName.nitems = strlen((char *)windowName.value); xclshints.res_name = NULL; xclshints.res_class = "Ximage"; @@ -571,7 +571,7 @@ getras(void) /* get raster file */ ourdata = (unsigned char *)malloc(ymax*((xmax+7)/8)); if (ourdata == NULL) goto fail; - ourras = make_raster(thedisplay, &ourvis, 1, ourdata, + ourras = make_raster(thedisplay, &ourvis, 1, (char *)ourdata, xmax, ymax, 8); if (ourras == NULL) goto fail; @@ -582,7 +582,7 @@ getras(void) /* get raster file */ if (ourdata == NULL) goto fail; ourras = make_raster(thedisplay, &ourvis, datsiz*8, - ourdata, xmax, ymax, datsiz*8); + (char *)ourdata, xmax, ymax, datsiz*8); if (ourras == NULL) goto fail; getfull(); @@ -590,7 +590,7 @@ getras(void) /* get raster file */ ourdata = (unsigned char *)malloc(xmax*ymax); if (ourdata == NULL) goto fail; - ourras = make_raster(thedisplay, &ourvis, 8, ourdata, + ourras = make_raster(thedisplay, &ourvis, 8, (char *)ourdata, xmax, ymax, 8); if (ourras == NULL) goto fail;