Skip to content

Commit

Permalink
fixup! checkout.c: enable fscache for checkout again
Browse files Browse the repository at this point in the history
These changes are needed to make Git build with DEVELOPER=1 again.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Feb 27, 2018
1 parent 07867ae commit b884481
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compat/win32/fscache.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ int fscache_enable(int enable)
/*
* Flush cached stats result when fscache is enabled.
*/
void fscache_flush()
void fscache_flush(void)
{
if (enabled) {
EnterCriticalSection(&mutex);
Expand Down
2 changes: 1 addition & 1 deletion compat/win32/fscache.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ int fscache_enable(int enable);
int fscache_enabled(const char *path);
#define is_fscache_enabled(path) fscache_enabled(path)

void fscache_flush();
void fscache_flush(void);
#define flush_fscache() fscache_flush()

DIR *fscache_opendir(const char *dir);
Expand Down
2 changes: 1 addition & 1 deletion entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ static int write_entry(struct cache_entry *ce,
}

finish:
// Flush cached lstat in fscache after writing disk.
/* Flush cached lstat in fscache after writing to disk. */
flush_fscache();

if (state->refresh_cache) {
Expand Down

0 comments on commit b884481

Please sign in to comment.