Factor out "read_sha1_file" into mapping/inflating/unmapping.
[git.git] / write-tree.c
index 921f981..6e531b4 100644 (file)
@@ -1,3 +1,8 @@
+/*
+ * GIT - The information manager from hell
+ *
+ * Copyright (C) Linus Torvalds, 2005
+ */
 #include "cache.h"
 
 static int check_valid_sha1(unsigned char *sha1)
@@ -26,7 +31,7 @@ static int prepend_integer(char *buffer, unsigned val, int i)
 
 int main(int argc, char **argv)
 {
-       unsigned long size, offset, val;
+       unsigned long size, offset;
        int i, entries = read_cache();
        char *buffer;