Fix a few bool types

Found via clang-tidy.
This commit is contained in:
Andrew Gaul 2019-09-05 10:42:14 -07:00
parent ae4bcd405c
commit 805cc064af
2 changed files with 3 additions and 3 deletions

View File

@ -438,7 +438,7 @@ bool S3fsCurl::InitS3fsCurl(const char* MimeFile)
bool S3fsCurl::DestroyS3fsCurl() bool S3fsCurl::DestroyS3fsCurl()
{ {
int result = true; bool result = true;
if(!S3fsCurl::DestroyCryptMutex()){ if(!S3fsCurl::DestroyCryptMutex()){
result = false; result = false;

View File

@ -209,7 +209,7 @@ static int check_passwd_file_perms();
static int read_aws_credentials_file(const std::string &filename); static int read_aws_credentials_file(const std::string &filename);
static int read_passwd_file(); static int read_passwd_file();
static int get_access_keys(); static int get_access_keys();
static int set_mountpoint_attribute(struct stat& mpst); static bool set_mountpoint_attribute(struct stat& mpst);
static int set_bucket(const char* arg); static int set_bucket(const char* arg);
static int my_fuse_opt_proc(void* data, const char* arg, int key, struct fuse_args* outargs); static int my_fuse_opt_proc(void* data, const char* arg, int key, struct fuse_args* outargs);
@ -4372,7 +4372,7 @@ static int get_access_keys()
// //
// Check & Set attributes for mount point. // Check & Set attributes for mount point.
// //
static int set_mountpoint_attribute(struct stat& mpst) static bool set_mountpoint_attribute(struct stat& mpst)
{ {
mp_uid = geteuid(); mp_uid = geteuid();
mp_gid = getegid(); mp_gid = getegid();