summaryrefslogtreecommitdiff
path: root/src/mwindow.h
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-03-14 17:36:15 -0700
committerRussell Belfer <arrbee@arrbee.com>2012-03-14 17:36:15 -0700
commitdeafee7bd7a9e2efcdff90627b6094d8c1519319 (patch)
tree4b11910d7d315a6db667cc4af4c6749630612ed3 /src/mwindow.h
parentab43ad2fd822504446e7876d6352c968a74beb53 (diff)
downloadlibgit2-deafee7bd7a9e2efcdff90627b6094d8c1519319.tar.gz
Continue error conversion
This converts blob.c, fileops.c, and all of the win32 files. Also, various minor cleanups throughout the code. Plus, in testing the win32 build, I cleaned up a bunch (although not all) of the warnings with the 64-bit build.
Diffstat (limited to 'src/mwindow.h')
-rw-r--r--src/mwindow.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mwindow.h b/src/mwindow.h
index 94bfb5d61..058027251 100644
--- a/src/mwindow.h
+++ b/src/mwindow.h
@@ -15,8 +15,8 @@ typedef struct git_mwindow {
struct git_mwindow *next;
git_map window_map;
git_off_t offset;
- unsigned int last_used;
- unsigned int inuse_cnt;
+ size_t last_used;
+ size_t inuse_cnt;
} git_mwindow;
typedef struct git_mwindow_file {
@@ -37,7 +37,7 @@ typedef struct git_mwindow_ctl {
int git_mwindow_contains(git_mwindow *win, git_off_t offset);
void git_mwindow_free_all(git_mwindow_file *mwf);
-unsigned char *git_mwindow_open(git_mwindow_file *mwf, git_mwindow **cursor, git_off_t offset, int extra, unsigned int *left);
+unsigned char *git_mwindow_open(git_mwindow_file *mwf, git_mwindow **cursor, git_off_t offset, size_t extra, unsigned int *left);
void git_mwindow_scan_lru(git_mwindow_file *mwf, git_mwindow **lru_w, git_mwindow **lru_l);
int git_mwindow_file_register(git_mwindow_file *mwf);
void git_mwindow_close(git_mwindow **w_cursor);