diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 17:12:47 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 17:12:47 +0000 |
commit | 08a006d08a4c35d2c3ecc9a3d10cf7fd14661a84 (patch) | |
tree | 0cfc4f0736babb895eb97a65c6defe632a0249c7 /graphics/urt/files/patch-cnv__rletorla.c | |
parent | editors/fte: update to 20110708 (diff) |
Rename all patches that contain '::' as a path separator, and use
'__' instead.
Notes
Notes:
svn path=/head/; revision=363362
Diffstat (limited to 'graphics/urt/files/patch-cnv__rletorla.c')
-rw-r--r-- | graphics/urt/files/patch-cnv__rletorla.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/graphics/urt/files/patch-cnv__rletorla.c b/graphics/urt/files/patch-cnv__rletorla.c new file mode 100644 index 000000000000..d242530e2af2 --- /dev/null +++ b/graphics/urt/files/patch-cnv__rletorla.c @@ -0,0 +1,42 @@ +--- cnv/rletorla.c.orig 2012-10-16 00:51:43.000000000 +0900 ++++ cnv/rletorla.c 2012-10-16 01:00:52.000000000 +0900 +@@ -29,9 +29,13 @@ + * System includes. + */ + #include <stdio.h> ++#include <stdlib.h> ++#include <string.h> ++#include <unistd.h> + #include "rlb_header.h" + #include "rle.h" + ++#if 0 + #ifdef USE_STDLIB_H + #include <stdlib.h> + #else +@@ -52,6 +56,7 @@ + extern void free(); + + #endif /* USE_STDLIB_H */ ++#endif + + #define VPRINTF if (verbose || header) fprintf + #define GRAYSCALE 001 /* 8 bits, no colormap */ +@@ -312,7 +317,7 @@ + U_CHAR *buf; + int *offset; + int width, height; +- int scan, x, y; ++ int scan, x; + short len; + long offptr; + /* +@@ -348,7 +353,7 @@ + exit(-1); + } + for (scan = 0; scan < height; scan++) { +- y = rle_getrow(&rle_dflt_hdr, scanline); ++ (void)rle_getrow(&rle_dflt_hdr, scanline); + switch (visual) { + case GRAYSCALE: /* 8 bits without colormap */ + red = scanline[0]; |