summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/repository.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository.cpp b/src/repository.cpp
index 9e122d3..02562a4 100644
--- a/src/repository.cpp
+++ b/src/repository.cpp
@@ -256,7 +256,7 @@ Repository::initFromCache( const string& cacheFile )
if ( fgets( input, length, fp ) ) {
line = stripWhiteSpace( input );
if ( line != CACHE_VERSION ) {
- close( fp );
+ fclose( fp );
return FORMAT_ERR;
}
}

Generated by cgit