mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-25 14:48:27 +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
|
// 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){
|
if(!path || !pst){
|
||||||
return false;
|
return false;
|
||||||
|
@ -162,7 +162,7 @@ class StatCache
|
|||||||
//
|
//
|
||||||
// Functions
|
// 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_
|
#endif // S3FS_CACHE_H_
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user