From: David Zafman Date: Thu, 30 Jan 2014 01:08:50 +0000 (-0800) Subject: common: buffer::ptr::cmp() is a const function X-Git-Tag: v0.78~237^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e1bfed52f95247e7adff87d2dbbaf3dbc212f091;p=ceph.git common: buffer::ptr::cmp() is a const function Signed-off-by: David Zafman --- diff --git a/src/common/buffer.cc b/src/common/buffer.cc index 5e57055b3ff1..eab91433aa90 100644 --- a/src/common/buffer.cc +++ b/src/common/buffer.cc @@ -664,7 +664,7 @@ static uint32_t simple_spinlock_t buffer_debug_lock = SIMPLE_SPINLOCK_INITIALIZE return _raw->len - _len; } - int buffer::ptr::cmp(const ptr& o) + int buffer::ptr::cmp(const ptr& o) const { int l = _len < o._len ? _len : o._len; if (l) { diff --git a/src/include/buffer.h b/src/include/buffer.h index ae5d376f9222..4c275cacae9e 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -208,7 +208,7 @@ public: unsigned wasted(); - int cmp(const ptr& o); + int cmp(const ptr& o) const; bool is_zero() const; // modifiers