Add const where possible

Found via cppcheck 2.1
This commit is contained in:
Andrew Gaul 2020-08-20 23:46:11 +09:00
parent bdea2ee5c8
commit 1ec8528502
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_