summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-07-13 14:02:19 +0200
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-07-16 14:19:46 +0200
commit7769b01dc82573e2bdbbb5a47ae5e11809035442 (patch)
treedfb45be8916b7c41c112222697fc879a49209af0
parent64b512c05605bd96dd65f066ba45c75375227d4d (diff)
downloadceph-7769b01dc82573e2bdbbb5a47ae5e11809035442.tar.gz
rgw_bucket.cc: don't return bool if return value is int
Fix minor style issue: if the function return value is an integer don't return bool values. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r--src/rgw/rgw_bucket.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rgw/rgw_bucket.cc b/src/rgw/rgw_bucket.cc
index 962dd872728..288cc36c9e3 100644
--- a/src/rgw/rgw_bucket.cc
+++ b/src/rgw/rgw_bucket.cc
@@ -115,7 +115,7 @@ int rgw_link_bucket(RGWRados *store, string user_id, rgw_bucket& bucket, time_t
}
if (!update_entrypoint)
- return false;
+ return 0;
ep.linked = true;
ep.owner = user_id;
@@ -149,7 +149,7 @@ int rgw_unlink_bucket(RGWRados *store, string user_id, const string& bucket_name
}
if (!update_entrypoint)
- return false;
+ return 0;
RGWBucketEntryPoint ep;
RGWObjVersionTracker ot;