Merge pull request #1375 from gaul/cppcheck

Add const where possible
This commit is contained in:
Takeshi Nakatani 2020-08-21 07:32:39 +09:00 committed by GitHub
commit c6e23212bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -763,7 +763,7 @@ bool StatCache::DelSymlink(const char* key, bool lock_already_held)
//-------------------------------------------------------------------
// Functions
//-------------------------------------------------------------------
bool convert_header_to_stat(const char* path, headers_t& meta, struct stat* pst, bool forcedir)
bool convert_header_to_stat(const char* path, const headers_t& meta, struct stat* pst, bool forcedir)
{
if(!path || !pst){
return false;

View File

@ -162,7 +162,7 @@ class StatCache
//
// Functions
//
bool convert_header_to_stat(const char* path, headers_t& meta, struct stat* pst, bool forcedir = false);
bool convert_header_to_stat(const char* path, const headers_t& meta, struct stat* pst, bool forcedir = false);
#endif // S3FS_CACHE_H_