diff options
| author | Alex Budovski <abudovski@gmail.com> | 2011-01-11 16:07:45 +1100 |
|---|---|---|
| committer | Alex Budovski <abudovski@gmail.com> | 2011-01-11 18:31:55 +1100 |
| commit | f0bde7fac0796bb6d7bfe794bd049041f2133905 (patch) | |
| tree | 8d0b13c20236ca2faa2017fe9ca4fa69b9efb0a5 /src/fileops.h | |
| parent | e0c23b88c57a5d765e5572d8ed317a4ba4da102a (diff) | |
| download | libgit2-f0bde7fac0796bb6d7bfe794bd049041f2133905.tar.gz | |
Revised platform types to use 'best supported' size.
This will allow graceful migration to 64 bit file sizes and timestamps should
git's binary interface be extended to allow this.
Diffstat (limited to 'src/fileops.h')
| -rw-r--r-- | src/fileops.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileops.h b/src/fileops.h index 6656cdf43..fa446e36a 100644 --- a/src/fileops.h +++ b/src/fileops.h @@ -64,7 +64,7 @@ extern int gitfo_mkdir_recurs(const char *path, int mode); extern int gitfo_read(git_file fd, void *buf, size_t cnt); extern int gitfo_write(git_file fd, void *buf, size_t cnt); #define gitfo_lseek(f,n,w) lseek(f, n, w) -extern off_t gitfo_size(git_file fd); +extern git_off_t gitfo_size(git_file fd); extern int gitfo_read_file(gitfo_buf *obj, const char *path); extern void gitfo_free_buf(gitfo_buf *obj); @@ -100,7 +100,7 @@ extern int gitfo_move_file(char *from, char *to); extern int gitfo_map_ro( git_map *out, git_file fd, - off_t begin, + git_off_t begin, size_t len); /** |
