]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
client: fix return code handling from _lseek
authorwenpengLi <liwenpeng@inspur.com>
Tue, 13 Aug 2019 03:45:50 +0000 (11:45 +0800)
committerwenpengLi <liwenpeng@inspur.com>
Fri, 27 Sep 2019 00:56:46 +0000 (08:56 +0800)
commitd5c0710dcc7f362cb254bbdb860fe44fe8f84ef5
tree2c9c12d43b00e686884aaea317c1a80505687023
parentd8eb2bb73ee0245aeef24a858d60f7544d436e78
client: fix return code handling from _lseek

The return type of _lseek is loff_t, but int r = _lseek in write may cause an overflow. It would be better to change it to auto, for example auto r = _lseek.

Signed-off-by: wenpengLi <liwenpeng@inspur.com>
src/client/Client.cc