diff options
| author | 2019-06-24 07:39:18 -0400 | |
|---|---|---|
| committer | 2019-07-08 14:01:44 +0200 | |
| commit | f1d1b51deabbd1e7b8c24883145fbf784784d250 (patch) | |
| tree | 711ff8cc400436b0d2602aa244c9240d1134e8e5 /samples/hidraw/ssh:/git@git.zx2c4.com/git: | |
| parent | ceph: more precise CEPH_CLIENT_CAPS_PENDING_CAPSNAP (diff) | |
ceph: make getxattr_cb return ssize_t
The getxattr_cb functions return size_t, which is unsigned and then
cast that value to int and then ssize_t before returning it. While all
of this works, it relies on implicit casting rules for signed/unsigned
conversions.
Change getxattr_cb to return ssize_t to better conform with what the
caller actually wants. Also, remove some suspicious casts.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Acked-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'samples/hidraw/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
