summaryrefslogtreecommitdiff
path: root/src/git2
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-01-10 05:01:38 +0200
committerVicent Marti <tanoku@gmail.com>2011-01-10 05:01:38 +0200
commit073fa812411507d7a96cbabda3f4aef012d92811 (patch)
tree4e5f3532633d79714954cefffd7f8a13d8c7b1b9 /src/git2
parent0740b462da240a455ad35e011a44832d04fa2d7a (diff)
downloadlibgit2-073fa812411507d7a96cbabda3f4aef012d92811.tar.gz
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>
Diffstat (limited to 'src/git2')
-rw-r--r--src/git2/index.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/git2/index.h b/src/git2/index.h
index 5e4a8d437..f0cae09b1 100644
--- a/src/git2/index.h
+++ b/src/git2/index.h
@@ -45,8 +45,8 @@ GIT_BEGIN_DECL
/** Time used in a git index entry */
typedef struct {
- time_t seconds;
- time_t nanoseconds;
+ unsigned int seconds;
+ unsigned int nanoseconds;
} git_index_time;
/** Memory representation of a file entry in the index. */
@@ -59,7 +59,7 @@ typedef struct git_index_entry {
unsigned int mode;
unsigned int uid;
unsigned int gid;
- off_t file_size;
+ unsigned int file_size;
git_oid oid;