update-index: add test for chmod flags
[gitweb.git] / builtin / update-index.c
index b8b8522249337703eb66b245ad263e7dc1b41582..57bd5af1446e2b19e89a33649504406716672f67 100644 (file)
@@ -419,7 +419,7 @@ static int add_cacheinfo(unsigned int mode, const unsigned char *sha1,
        return 0;
 }
 
-static void chmod_path(int flip, const char *path)
+static void chmod_path(char flip, const char *path)
 {
        int pos;
        struct cache_entry *ce;