]> git.imager.perl.org - imager.git/blobdiff - map.c
use $Config{path_sep} instead of working it out on our own
[imager.git] / map.c
diff --git a/map.c b/map.c
index 7acd64af6ae2c394e617fa4bbaffde1d96cb340f..f1a6db5bd3dfb152d036e94a864bff8b6ead4bec 100644 (file)
--- a/map.c
+++ b/map.c
@@ -17,7 +17,7 @@ converting from RGBA to greyscale and back.
 =cut
 */
 
-#include "image.h"
+#include "imager.h"
 
 
 /*
@@ -38,8 +38,8 @@ void
 i_map(i_img *im, unsigned char (*maps)[256], unsigned int mask) {
   i_color *vals;
   int x, y;
-  int mapno, i, ch;
-  int minset = -1, maxset;
+  int i, ch;
+  int minset = -1, maxset = 0;
 
   mm_log((1,"i_map(im %p, maps %p, chmask %u)\n", im, maps, mask));