Index: src/gdevccr.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevccr.c,v
retrieving revision 1.5
diff -u -r1.5 gdevccr.c
--- src/gdevccr.c	10 Aug 2004 13:02:36 -0000	1.5
+++ src/gdevccr.c	19 Jan 2005 00:09:44 -0000
@@ -112,9 +112,12 @@
 /* ------ Color mapping routines ------ */
 /* map an rgb color to a ccr cmy bitmap */
 private gx_color_index
-ccr_map_rgb_color(gx_device *pdev, ushort r, ushort g, ushort b)
+ccr_map_rgb_color(gx_device *pdev, const ushort cv[])
 {
+  ushort r, g, b;
   register int shift = gx_color_value_bits - 1;
+
+  r = cv[0]; g = cv[1]; b = cv[2];
   r>>=shift;
   g>>=shift;
   b>>=shift;
Index: src/gdevcp50.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevcp50.c,v
retrieving revision 1.6
diff -u -r1.6 gdevcp50.c
--- src/gdevcp50.c	10 Aug 2004 13:02:36 -0000	1.6
+++ src/gdevcp50.c	19 Jan 2005 00:09:44 -0000
@@ -204,11 +204,14 @@
  
 /* Map a r-g-b color to a color index. */
 private gx_color_index
-cp50_rgb_color(gx_device *dev, gx_color_value r, gx_color_value g,
-  gx_color_value b)
-{   return ((ulong)gx_color_value_to_byte(r) << 16)+
-           ((uint)gx_color_value_to_byte(g) << 8) +
-           gx_color_value_to_byte(b);
+cp50_rgb_color(gx_device *dev, const gx_color_value cv[])
+{   
+    gx_color_value red, green, blue;
+
+    red = cv[0]; green = cv[1]; blue = cv[2];
+    return ((ulong)gx_color_value_to_byte(red) << 16)+
+           ((uint)gx_color_value_to_byte(green) << 8) +
+           gx_color_value_to_byte(blue);
 }
  
 /* Map a color index to a r-g-b color. */
Index: src/gdevifno.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevifno.c,v
retrieving revision 1.5
diff -u -r1.5 gdevifno.c
--- src/gdevifno.c	16 Jun 2002 05:48:55 -0000	1.5
+++ src/gdevifno.c	19 Jan 2005 00:09:44 -0000
@@ -99,13 +99,14 @@
  * rgb and color map entries
  */
 private gx_color_index 
-inferno_rgb2cmap(gx_device *dev, gx_color_value red,
-  gx_color_value green, gx_color_value blue) {
+inferno_rgb2cmap(gx_device *dev, const gx_color_value cv[]) {
 	int shift;
 	inferno_device *bdev = (inferno_device*) dev;
 	int nbits = bdev->nbits;
 	int mask = (1<<nbits)-1;
+	gx_color_value red, green, blue;
 
+	red = cv[0]; green = cv[1]; blue = cv[2];
 	/* make the colors the size we want */
 	if(gx_color_value_bits > nbits) {
 		shift = gx_color_value_bits - nbits;
Index: src/gdevmgr.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevmgr.c,v
retrieving revision 1.7
diff -u -r1.7 gdevmgr.c
--- src/gdevmgr.c	20 Sep 2004 22:14:59 -0000	1.7
+++ src/gdevmgr.c	19 Jan 2005 00:09:45 -0000
@@ -107,7 +107,7 @@
 {	struct b_header head;
 	uint line_size =
 		gdev_prn_raster((gx_device_printer *)bdev) + 3;
-	byte *data = (byte *)gs_malloc(bdev, line_size, 1, "mgr_begin_page");
+	byte *data = (byte *)gs_malloc(bdev->memory, line_size, 1, "mgr_begin_page");
 	if ( data == 0 )
 		return_error(gs_error_VMerror);
 
@@ -131,7 +131,7 @@
 private int
 mgr_next_row(mgr_cursor *pcur)
 {	if ( pcur->lnum >= pcur->dev->height )
-	{	gs_free((gx_device_printer *)pcur->dev->memory,
+	{	gs_free(((gx_device_printer *)pcur->dev)->memory,
 			(char *)pcur->data, pcur->line_size, 1,
 			"mgr_next_row(done)");
 		return 1;
@@ -365,11 +365,11 @@
 /* (1/6, 1/2, and 5/6), instead of the obvious 8x8x4. */
 
 gx_color_index
-mgr_8bit_map_rgb_color(gx_device *dev, gx_color_value r, gx_color_value g,
-  gx_color_value b)
-{	uint rv = r / (gx_max_color_value / 7 + 1);
-	uint gv = g / (gx_max_color_value / 7 + 1);
-	uint bv = b / (gx_max_color_value / 7 + 1);
+mgr_8bit_map_rgb_color(gx_device *dev, const gx_color_value cv[])
+{
+	uint rv = cv[0] / (gx_max_color_value / 7 + 1);
+	uint gv = cv[1] / (gx_max_color_value / 7 + 1);
+	uint bv = cv[2] / (gx_max_color_value / 7 + 1);
 	return (gx_color_index)
 		(rv == gv && gv == bv ? rv + (256-7) :
 		 (rv << 5) + (gv << 2) + (bv >> 1));
