From 805cc064affb87daa8bcb842cd526dc1d7105bdc Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Thu, 5 Sep 2019 10:42:14 -0700 Subject: [PATCH] Fix a few bool types Found via clang-tidy. --- src/curl.cpp | 2 +- src/s3fs.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/curl.cpp b/src/curl.cpp index cb2fab0..f04fc53 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -438,7 +438,7 @@ bool S3fsCurl::InitS3fsCurl(const char* MimeFile) bool S3fsCurl::DestroyS3fsCurl() { - int result = true; + bool result = true; if(!S3fsCurl::DestroyCryptMutex()){ result = false; diff --git a/src/s3fs.cpp b/src/s3fs.cpp index fee391f..710bc07 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -209,7 +209,7 @@ static int check_passwd_file_perms(); static int read_aws_credentials_file(const std::string &filename); static int read_passwd_file(); 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 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. // -static int set_mountpoint_attribute(struct stat& mpst) +static bool set_mountpoint_attribute(struct stat& mpst) { mp_uid = geteuid(); mp_gid = getegid();