Commit 073fa812 by Vicent Marti

Use generic types in git_index_entry

Off_t is not cool. It can be 32 or 64 bits depending on the platform,
but on the Index format, it's always 32 bits.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
parent 0740b462
...@@ -45,8 +45,8 @@ GIT_BEGIN_DECL ...@@ -45,8 +45,8 @@ GIT_BEGIN_DECL
/** Time used in a git index entry */ /** Time used in a git index entry */
typedef struct { typedef struct {
time_t seconds; unsigned int seconds;
time_t nanoseconds; unsigned int nanoseconds;
} git_index_time; } git_index_time;
/** Memory representation of a file entry in the index. */ /** Memory representation of a file entry in the index. */
...@@ -59,7 +59,7 @@ typedef struct git_index_entry { ...@@ -59,7 +59,7 @@ typedef struct git_index_entry {
unsigned int mode; unsigned int mode;
unsigned int uid; unsigned int uid;
unsigned int gid; unsigned int gid;
off_t file_size; unsigned int file_size;
git_oid oid; git_oid oid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment