From 69262720566129806158e1086abdb0848b3176d8 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Mon, 10 Feb 2014 19:34:44 +0200 Subject: [PATCH] common/buffer: fix build breakage for CEPH_HAVE_SETPIPE_SZ common/buffer.cc fails to build if CEPH_HAVE_SETPIPE_SZ is defined. Fix it. Signed-off-by: Ilya Dryomov --- src/common/buffer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/buffer.cc b/src/common/buffer.cc index eab91433aa90..4279cdbbc681 100644 --- a/src/common/buffer.cc +++ b/src/common/buffer.cc @@ -94,7 +94,7 @@ static uint32_t simple_spinlock_t buffer_debug_lock = SIMPLE_SPINLOCK_INITIALIZE if (r < 0) return r; buf[r] = '\0'; - size = strict_strtol(buf, 10, &err); + size_t size = strict_strtol(buf, 10, &err); if (!err.empty()) return -EIO; buffer_max_pipe_size.set(size); @@ -108,7 +108,7 @@ static uint32_t simple_spinlock_t buffer_debug_lock = SIMPLE_SPINLOCK_INITIALIZE if (size) return size; if (update_max_pipe_size() == 0) - return buffer_max_pipe_size.read() + return buffer_max_pipe_size.read(); #endif // this is the max size hardcoded in linux before 2.6.35 return 65536; -- 2.47.3