]>
Commit | Line | Data |
---|---|---|
00dc210f | 1 | --- plotutils-2.4.1/libplot/g_write.c~ Fri May 19 18:10:01 2000 |
2 | +++ plotutils-2.4.1/libplot/g_write.c Mon Nov 26 17:17:25 2001 | |
3 | @@ -40,7 +40,7 @@ | |
4 | } | |
5 | #ifdef LIBPLOTTER | |
6 | else if (data->outstream) | |
7 | - data->outstream->write(c, n); | |
8 | + data->outstream->write((const char *)c, n); | |
9 | #endif | |
10 | } | |
11 | ||
12 | --- plotutils-2.4.1/libplot/i_rle.c~ Sun Jun 27 18:58:10 1999 | |
13 | +++ plotutils-2.4.1/libplot/i_rle.c Mon Nov 26 18:33:37 2001 | |
14 | @@ -78,7 +78,7 @@ | |
15 | else if (rle->outstream) | |
16 | { | |
17 | rle->outstream->put ((unsigned char)(rle->oblen)); | |
18 | - rle->outstream->write (&(rle->oblock[0]), rle->oblen); | |
19 | + rle->outstream->write ((const char *)&(rle->oblock[0]), rle->oblen); | |
20 | } | |
21 | #endif | |
22 | ||
23 | --- plotutils-2.4.1/libplot/n_write.c~ Fri Jun 16 07:42:13 2000 | |
24 | +++ plotutils-2.4.1/libplot/n_write.c Mon Nov 26 19:39:34 2001 | |
25 | @@ -208,7 +208,7 @@ | |
26 | linebuf[pos++] = '0'; | |
27 | if (pos >= MAX_PBM_PIXELS_PER_LINE || i == (width - 1)) | |
28 | { | |
29 | - stream->write (linebuf, pos); | |
30 | + stream->write ((const char *)linebuf, pos); | |
31 | stream->put ('\n'); | |
32 | ||
33 | pos = 0; | |
34 | @@ -253,7 +253,7 @@ | |
35 | rowbuf[bytecount++] = outbyte; | |
36 | } | |
37 | /* emit row of bytes */ | |
38 | - stream->write (rowbuf, bytecount); | |
39 | + stream->write ((const char *)rowbuf, bytecount); | |
40 | } | |
41 | ||
42 | free (rowbuf); | |
43 | @@ -366,7 +366,7 @@ | |
44 | num_pixels++; | |
45 | if (num_pixels >= MAX_PGM_PIXELS_PER_LINE || i == (width - 1)) | |
46 | { | |
47 | - stream->write (linebuf, pos); | |
48 | + stream->write ((const char *)linebuf, pos); | |
49 | stream->put ('\n'); | |
50 | ||
51 | num_pixels = 0; | |
52 | @@ -392,7 +392,7 @@ | |
53 | { | |
54 | for (i = 0; i < width; i++) | |
55 | rowbuf[i] = pixmap[j][i].u.rgb[0]; | |
56 | - stream->write (rowbuf, width); | |
57 | + stream->write ((const char *)rowbuf, width); | |
58 | } | |
59 | free (rowbuf); | |
60 | } | |
61 | @@ -514,7 +514,7 @@ | |
62 | num_pixels++; | |
63 | if (num_pixels >= MAX_PPM_PIXELS_PER_LINE || i == (width - 1)) | |
64 | { | |
65 | - stream->write (linebuf, pos); | |
66 | + stream->write ((const char *)linebuf, pos); | |
67 | stream->put ('\n'); | |
68 | ||
69 | num_pixels = 0; | |
70 | @@ -542,7 +542,7 @@ | |
71 | for (i = 0; i < width; i++) | |
72 | for (component = 0; component < 3; component++) | |
73 | rowbuf[3 * i + component] = pixmap[j][i].u.rgb[component]; | |
74 | - stream->write (rowbuf, 3 * width); | |
75 | + stream->write ((const char *)rowbuf, 3 * width); | |
76 | } | |
77 | free (rowbuf); | |
78 | } | |
79 | --- plotutils-2.4.1/libplot/z_write.c~ Tue Jun 20 06:34:42 2000 | |
80 | +++ plotutils-2.4.1/libplot/z_write.c Mon Nov 26 20:34:35 2001 | |
81 | @@ -484,7 +484,7 @@ | |
82 | ostream *stream; | |
83 | ||
84 | stream = (ostream *)png_get_io_ptr (png_ptr); | |
85 | - stream->write (data, length); | |
86 | + stream->write ((const char *)data, length); | |
87 | } | |
88 | ||
89 | static void |