Use fixed-size integers for the on-disk pack structure.
[gitweb.git] / pack.h
diff --git a/pack.h b/pack.h
index 790ff4a39681402d6b6e2517e5fcf1bec59bcdc5..821706fbcd6e6989af8f3dcb37eec32e7a519f71 100644 (file)
--- a/pack.h
+++ b/pack.h
@@ -10,9 +10,9 @@
 #define PACK_VERSION 2
 #define pack_version_ok(v) ((v) == htonl(2) || (v) == htonl(3))
 struct pack_header {
-       unsigned int hdr_signature;
-       unsigned int hdr_version;
-       unsigned int hdr_entries;
+       uint32_t hdr_signature;
+       uint32_t hdr_version;
+       uint32_t hdr_entries;
 };
 
 /*