Make index file locking code reusable to others.
[gitweb.git] / read-cache.c
index 36bd4ea0be84516be217945840a78c49872bfa38..c499c5185678b6b4ac35d57d1ab0b36cc2ff056b 100644 (file)
@@ -826,7 +826,7 @@ static int ce_write(SHA_CTX *context, int fd, void *data, unsigned int len)
 }
 
 static int write_index_ext_header(SHA_CTX *context, int fd,
-                                 unsigned long ext, unsigned long sz)
+                                 unsigned int ext, unsigned int sz)
 {
        ext = htonl(ext);
        sz = htonl(sz);