]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/buffer: fix build breakage for CEPH_HAVE_SETPIPE_SZ 1204/head
authorIlya Dryomov <ilya.dryomov@inktank.com>
Mon, 10 Feb 2014 17:34:44 +0000 (19:34 +0200)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Mon, 10 Feb 2014 17:37:30 +0000 (19:37 +0200)
common/buffer.cc fails to build if CEPH_HAVE_SETPIPE_SZ is defined.
Fix it.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
src/common/buffer.cc

index eab91433aa9076936cb00ee0f1030694c17a9243..4279cdbbc68114b286ca180ced69632daff78b60 100644 (file)
@@ -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;