summaryrefslogtreecommitdiff
path: root/graphics/urt/files/patch-tools::rlepatch.c
blob: 8c4f71540109ea0921968b7f0bc900f1477e114e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 */