diff options
Diffstat (limited to 'graphics/urt/files/patch-tools__mcut.c')
-rw-r--r-- | graphics/urt/files/patch-tools__mcut.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/graphics/urt/files/patch-tools__mcut.c b/graphics/urt/files/patch-tools__mcut.c new file mode 100644 index 000000000000..b7268b3145d4 --- /dev/null +++ b/graphics/urt/files/patch-tools__mcut.c @@ -0,0 +1,29 @@ +--- tools/mcut.c.orig 1992-01-24 01:24:41.000000000 +0900 ++++ tools/mcut.c 2012-10-15 22:52:09.000000000 +0900 +@@ -232,7 +232,7 @@ + * has a slot for a color map index, so the back pointer it followed + * only once. + */ +-void ++int + main ( argc, argv ) + int argc; + char ** argv; +@@ -791,7 +791,7 @@ + TRACE( tmp_cb, cb_list ) + { + register color_t *newcol = &tmp_cb->color; +- register newdist = DISTANCE( ref_col, *newcol ); ++ register int newdist = DISTANCE( ref_col, *newcol ); + + if ( newdist < dist ) + { +@@ -963,7 +963,7 @@ + cmp_radices ( h1, h2 ) + histogram_t **h1, **h2; + { +- register c1 = -1, c2 = -1; ++ register int c1 = -1, c2 = -1; + + if ( *h1 ) + c1 = (*h1)->color & mask; |