make file index flags private to fileindex.c
diff --git a/lib/fileindex.c b/lib/fileindex.c
index 5e6ac2f..f700d53 100644
--- a/lib/fileindex.c
+++ b/lib/fileindex.c
@@ -34,6 +34,13 @@
#include "got_lib_fileindex.h"
#include "got_lib_worktree.h"
+/* got_fileindex_entry flags */
+#define GOT_FILEIDX_F_PATH_LEN 0x00000fff
+#define GOT_FILEIDX_F_STAGE 0x00003000
+#define GOT_FILEIDX_F_EXTENDED 0x00004000
+#define GOT_FILEIDX_F_ASSUME_VALID 0x00008000
+#define GOT_FILEIDX_F_NOT_FLUSHED 0x20000000
+
struct got_fileindex {
struct got_fileindex_tree entries;
int nentries;
diff --git a/lib/got_lib_fileindex.h b/lib/got_lib_fileindex.h
index 3bbed3d..97d2c4f 100644
--- a/lib/got_lib_fileindex.h
+++ b/lib/got_lib_fileindex.h
@@ -49,11 +49,6 @@ struct got_fileindex_entry {
uint8_t commit_sha1[SHA1_DIGEST_LENGTH];
uint32_t flags;
-#define GOT_FILEIDX_F_PATH_LEN 0x00000fff
-#define GOT_FILEIDX_F_STAGE 0x00003000
-#define GOT_FILEIDX_F_EXTENDED 0x00004000
-#define GOT_FILEIDX_F_ASSUME_VALID 0x00008000
-#define GOT_FILEIDX_F_NOT_FLUSHED 0x20000000
/*
* UNIX-style path, relative to work tree root.