1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/graphics/urt/files/patch-tools::rlepatch.c
Marcelo Araujo 94e79576fb - Fix build with clang.
- Add MAKE_JOBS_SAFE.
- Trim header.
- Convert to optionsNG.

PR:		ports/172717
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-01-21 03:31:56 +00:00

30 lines
747 B
C

--- 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 */