diff options
author | Brandon Low <lostlogic@gentoo.org> | 2002-06-16 17:56:46 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@gentoo.org> | 2002-06-16 17:56:46 +0000 |
commit | 1d83240c39b3369e0803f59010b00a7090c09dfe (patch) | |
tree | b326a686c8376d09b2f3d750ce7a8c7dd44d5e76 /media-libs/plotutils | |
parent | gcc-3.1 compile fixes closes 3359 (diff) | |
download | gentoo-2-1d83240c39b3369e0803f59010b00a7090c09dfe.tar.gz gentoo-2-1d83240c39b3369e0803f59010b00a7090c09dfe.tar.bz2 gentoo-2-1d83240c39b3369e0803f59010b00a7090c09dfe.zip |
missing patch
Diffstat (limited to 'media-libs/plotutils')
-rw-r--r-- | media-libs/plotutils/files/plotutils-2.4.1-gentoo.patch | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/media-libs/plotutils/files/plotutils-2.4.1-gentoo.patch b/media-libs/plotutils/files/plotutils-2.4.1-gentoo.patch new file mode 100644 index 000000000000..3d34ea395fbd --- /dev/null +++ b/media-libs/plotutils/files/plotutils-2.4.1-gentoo.patch @@ -0,0 +1,89 @@ +--- plotutils-2.4.1/libplot/g_write.c~ Fri May 19 18:10:01 2000 ++++ plotutils-2.4.1/libplot/g_write.c Sun Jun 16 03:22:30 2002 +@@ -40,7 +40,7 @@ + } + #ifdef LIBPLOTTER + else if (data->outstream) +- data->outstream->write(c, n); ++ data->outstream->write ((const char*)c, n); + #endif + } + +--- plotutils-2.4.1/libplot/i_rle.c~ Sun Jun 27 18:58:10 1999 ++++ plotutils-2.4.1/libplot/i_rle.c Sun Jun 16 03:22:30 2002 +@@ -78,7 +78,7 @@ + else if (rle->outstream) + { + rle->outstream->put ((unsigned char)(rle->oblen)); +- rle->outstream->write (&(rle->oblock[0]), rle->oblen); ++ rle->outstream->write (&(const char)(rle->oblock[0]), rle->oblen); + } + #endif + +--- plotutils-2.4.1/libplot/n_write.c~ Fri Jun 16 07:42:13 2000 ++++ plotutils-2.4.1/libplot/n_write.c Sun Jun 16 03:22:30 2002 +@@ -208,7 +208,7 @@ + linebuf[pos++] = '0'; + if (pos >= MAX_PBM_PIXELS_PER_LINE || i == (width - 1)) + { +- stream->write (linebuf, pos); ++ stream->write ((const char*)linebuf, pos); + stream->put ('\n'); + + pos = 0; +@@ -253,7 +253,7 @@ + rowbuf[bytecount++] = outbyte; + } + /* emit row of bytes */ +- stream->write (rowbuf, bytecount); ++ stream->write ((const char*)rowbuf, bytecount); + } + + free (rowbuf); +@@ -366,7 +366,7 @@ + num_pixels++; + if (num_pixels >= MAX_PGM_PIXELS_PER_LINE || i == (width - 1)) + { +- stream->write (linebuf, pos); ++ stream->write ((const char*)linebuf, pos); + stream->put ('\n'); + + num_pixels = 0; +@@ -392,7 +392,7 @@ + { + for (i = 0; i < width; i++) + rowbuf[i] = pixmap[j][i].u.rgb[0]; +- stream->write (rowbuf, width); ++ stream->write ((const char*)rowbuf, width); + } + free (rowbuf); + } +@@ -514,7 +514,7 @@ + num_pixels++; + if (num_pixels >= MAX_PPM_PIXELS_PER_LINE || i == (width - 1)) + { +- stream->write (linebuf, pos); ++ stream->write ((const char*)linebuf, pos); + stream->put ('\n'); + + num_pixels = 0; +@@ -542,7 +542,7 @@ + for (i = 0; i < width; i++) + for (component = 0; component < 3; component++) + rowbuf[3 * i + component] = pixmap[j][i].u.rgb[component]; +- stream->write (rowbuf, 3 * width); ++ stream->write ((const char*)rowbuf, 3 * width); + } + free (rowbuf); + } +--- plotutils-2.4.1/libplot/z_write.c~ Tue Jun 20 06:34:42 2000 ++++ plotutils-2.4.1/libplot/z_write.c Sun Jun 16 03:22:30 2002 +@@ -484,7 +484,7 @@ + ostream *stream; + + stream = (ostream *)png_get_io_ptr (png_ptr); +- stream->write (data, length); ++ stream->write ((const char*)data, length); + } + + static void |