diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-07-09 02:25:01 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-08-02 21:42:03 +0200 |
| commit | 7d0cdf82be73ea8c0dce07e5e0ed3c7fdcd4707e (patch) | |
| tree | cc467dc0e29c52fbeb4663285150f470fee58ec1 /src/mwindow.c | |
| parent | ab525a7463492aa64c936b59165ab33f6264f1a8 (diff) | |
| download | libgit2-7d0cdf82be73ea8c0dce07e5e0ed3c7fdcd4707e.tar.gz | |
Make packfile_unpack_header more generic
On the way, store the fd and the size in the mwindow file.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/mwindow.c')
| -rw-r--r-- | src/mwindow.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mwindow.c b/src/mwindow.c index 3ac585720..2f7fc7f7d 100644 --- a/src/mwindow.c +++ b/src/mwindow.c @@ -203,8 +203,8 @@ cleanup: * Open a new window, closing the least recenty used until we have * enough space. Don't forget to add it to your list */ -unsigned char *git_mwindow_open(git_mwindow_file *mwf, git_mwindow **cursor, git_file fd, - size_t size, off_t offset, int extra, unsigned int *left) +unsigned char *git_mwindow_open(git_mwindow_file *mwf, git_mwindow **cursor, + off_t offset, int extra, unsigned int *left) { git_mwindow *w = *cursor; @@ -223,7 +223,7 @@ unsigned char *git_mwindow_open(git_mwindow_file *mwf, git_mwindow **cursor, git * one. */ if (!w) { - w = new_window(mwf, fd, size, offset); + w = new_window(mwf, mwf->fd, mwf->size, offset); if (w == NULL) return NULL; w->next = mwf->windows; |
