mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-13 07:56:30 +00:00
Add const where possible
Found via cppcheck 2.1
This commit is contained in:
parent
bdea2ee5c8
commit
1ec8528502
@ -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;
|
||||
|
@ -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_
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user