Code

gitview.txt: improve asciidoc markup
[git.git] / unpack-trees.c
index a20639be70edb13bc87353a69a13f17994ea41a5..467d9940f5a2e9cd8a880e4c8f0f1d2a8a5f7aa1 100644 (file)
@@ -278,7 +278,7 @@ static void unlink_entry(char *name)
        }
 }
 
-static volatile int progress_update = 0;
+static volatile sig_atomic_t progress_update;
 
 static void progress_interval(int signum)
 {
@@ -417,7 +417,7 @@ static int same(struct cache_entry *a, struct cache_entry *b)
        if (!a && !b)
                return 1;
        return a->ce_mode == b->ce_mode &&
-               !memcmp(a->sha1, b->sha1, 20);
+              !hashcmp(a->sha1, b->sha1);
 }