libceph: fix and clarify ceph_decode_need() sizes
authorIlya Dryomov <ilya.dryomov@inktank.com>
Thu, 13 Mar 2014 14:36:16 +0000 (16:36 +0200)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:07:47 +0000 (21:07 -0700)
commit53bbaba9d811f75acc20038bfd707a4cfdc4571f
tree56c1aa1d31330fb1b687d159ee89124f46f90861
parent9464d00862ea6a5c0edc7118c86bdfa71a95190e
libceph: fix and clarify ceph_decode_need() sizes

Sum up sizeof(...) results instead of (incorrectly) hard-coding the
number of bytes, expressed in ints and longs.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
net/ceph/osdmap.c