aboutsummaryrefslogtreecommitdiff
path: root/graphics/urt/files/patch-cnv__rletorla.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/urt/files/patch-cnv__rletorla.c')
-rw-r--r--graphics/urt/files/patch-cnv__rletorla.c42
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];