1 $NetBSD: patch-ac,v 1.1 2003/09/09 14:52:56 jmmv Exp $
3 --- libplot/n_write.c.orig 2000-06-16 14:42:13.000000000 +0900
4 +++ libplot/n_write.c 2003-09-09 21:22:38.000000000 +0900
7 if (pos >= MAX_PBM_PIXELS_PER_LINE || i == (width - 1))
9 - stream->write (linebuf, pos);
10 + stream->write ((const char *)linebuf, pos);
15 rowbuf[bytecount++] = outbyte;
17 /* emit row of bytes */
18 - stream->write (rowbuf, bytecount);
19 + stream->write ((const char *)rowbuf, bytecount);
25 if (num_pixels >= MAX_PGM_PIXELS_PER_LINE || i == (width - 1))
27 - stream->write (linebuf, pos);
28 + stream->write ((const char *)linebuf, pos);
34 for (i = 0; i < width; i++)
35 rowbuf[i] = pixmap[j][i].u.rgb[0];
36 - stream->write (rowbuf, width);
37 + stream->write ((const char *)rowbuf, width);
43 if (num_pixels >= MAX_PPM_PIXELS_PER_LINE || i == (width - 1))
45 - stream->write (linebuf, pos);
46 + stream->write ((const char *)linebuf, pos);
51 for (i = 0; i < width; i++)
52 for (component = 0; component < 3; component++)
53 rowbuf[3 * i + component] = pixmap[j][i].u.rgb[component];
54 - stream->write (rowbuf, 3 * width);
55 + stream->write ((const char *)rowbuf, 3 * width);