]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/buffer: pass `const int[2]` to close_pipe() 17909/head
authorKefu Chai <kchai@redhat.com>
Fri, 22 Sep 2017 07:48:47 +0000 (15:48 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 22 Sep 2017 07:48:57 +0000 (15:48 +0800)
commit974f7ff046c81e178d10914d0d7a142cd1bd73c5
tree5230f065e999cd7de2f395e3ee7480c4663b88a8
parentf69631a2f985030da729b6a92fdf69f666bcd074
common/buffer: pass `const int[2]` to close_pipe()

be explicit instead of passing a `const int*`, this avoids the warning
from clang analyzer:

  Array subscript is undefined

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/buffer.cc