]> git.sesse.net Git - plocate/blobdiff - db.h
Make update-plocate.sh work properly if installed to /usr.
[plocate] / db.h
diff --git a/db.h b/db.h
index d4baf530096f0f640628b86b03623f6d168dfa24..ca8b3ea74ae513a16a6bb9ed42a4eccdd9ea40a0 100644 (file)
--- a/db.h
+++ b/db.h
@@ -4,13 +4,14 @@
 #include <stdint.h>
 
 struct Header {
-       char magic[8]; // "\0plocate";
+       char magic[8];  // "\0plocate";
        uint32_t version;  // 0.
        uint32_t hashtable_size;
        uint32_t extra_ht_slots;
+       uint32_t num_docids;
        uint64_t hash_table_offset_bytes;
        uint64_t filename_index_offset_bytes;
-}; 
+};
 
 struct Trigram {
        uint32_t trgm;