]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/simple: pass a char for reading from shutdown_rd_fd
authorKefu Chai <kchai@redhat.com>
Wed, 22 Nov 2017 04:57:18 +0000 (12:57 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 22 Nov 2017 04:57:19 +0000 (12:57 +0800)
commitfd3c5cf3e35b7181964048c6b208b3b24815dc96
treef9cc62a208808119f2c5492958a029974918edeb
parent67ad6a2a3998d010a7b083ad561eed57ec785176
msg/simple: pass a char for reading from shutdown_rd_fd

Fixes the coverity issue:

> CID 1395794 (#1 of 1): Wrong size argument (SIZEOF_MISMATCH)
> suspicious_sizeof: Passing argument &ch of type int * and
> argument 1UL to function read is suspicious because sizeof
> (int) /*4*/ is expected.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/msg/simple/Accepter.cc