diff options
Diffstat (limited to 'graphics/urt/files/patch-cnv__rletops.c')
-rw-r--r-- | graphics/urt/files/patch-cnv__rletops.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/graphics/urt/files/patch-cnv__rletops.c b/graphics/urt/files/patch-cnv__rletops.c new file mode 100644 index 000000000000..33c06ea787d9 --- /dev/null +++ b/graphics/urt/files/patch-cnv__rletops.c @@ -0,0 +1,39 @@ +--- cnv/rletops.c.orig 1992-01-21 03:04:10.000000000 +0900 ++++ cnv/rletops.c 2012-10-15 22:45:15.000000000 +0900 +@@ -58,7 +58,7 @@ + + static int gencps = 0; /* generate color PostScript? */ + +-void ++int + main( argc, argv ) + int argc; + char **argv; +@@ -74,7 +74,7 @@ + float heightinch = 3.0, + center = 3.25, + aspect = 1.0; +- int y, nrow, nscan, i, pix, dummy; ++ int nrow, nscan, i, pix, dummy; + float x1, y1, x2, y2, widthinch; + unsigned char ** scan; + unsigned char * buffer; +@@ -154,8 +154,7 @@ + y2 = y1 + heightinch; + prologue(outfile,sflag,nscan,nrow,x1,y1,x2,y2); + +- while ( (y = rle_getrow( &hdr, scan )) <= +- hdr.ymax ) ++ while ( ( rle_getrow( &hdr, scan )) <= hdr.ymax ) + { + if (gencps) { + /* generate a color line */ +@@ -231,7 +230,7 @@ + FILE *outfile; + unsigned char p; + { +- static npixo = 0; ++ static int npixo = 0; + static char tohex[] = "0123456789ABCDEF"; + + putc(tohex[(p>>4)&0xF],outfile); |