summaryrefslogtreecommitdiff
path: root/graphics/urt/files/patch-tools__rlepatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/urt/files/patch-tools__rlepatch.c')
-rw-r--r--graphics/urt/files/patch-tools__rlepatch.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/graphics/urt/files/patch-tools__rlepatch.c b/graphics/urt/files/patch-tools__rlepatch.c
new file mode 100644
index 000000000000..8c4f71540109
--- /dev/null
+++ b/graphics/urt/files/patch-tools__rlepatch.c
@@ -0,0 +1,29 @@
+--- tools/rlepatch.c.orig 1992-01-24 03:33:19.000000000 +0900
++++ tools/rlepatch.c 2012-10-15 22:58:01.000000000 +0900
+@@ -33,7 +33,7 @@
+
+ #define IN_WINDOW(y,wind) ((y >= wind.ymin) && (y <= wind.ymax))
+
+-void
++int
+ main( argc, argv )
+ int argc;
+ char **argv;
+@@ -46,7 +46,7 @@
+ rle_pixel ** im_rows, **patch_rows, ** outrows;
+ int stdin_used = 0;
+ int patches = 0, oflag = 0, i, y, c, xlen, width;
+- int rle_cnt, rle_err;
++ int rle_cnt;
+
+ im_hdr = *rle_hdr_init( NULL );
+ out_hdr = *rle_hdr_init( NULL );
+@@ -86,7 +86,7 @@
+ }
+
+ for ( rle_cnt = 0;
+- (rle_err = rle_get_setup( &im_hdr )) == RLE_SUCCESS;
++ rle_get_setup( &im_hdr ) == RLE_SUCCESS;
+ rle_cnt++ )
+ {
+ /* Get the patch files set up */