commit | d2bb24e506596ad0c10e4a7f4b2fca88cc75c0bc | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@inktank.com> | Thu Jul 26 23:37:14 2012 -0500 |
committer | Alex Elder <elder@inktank.com> | Mon Oct 01 14:30:48 2012 -0500 |
tree | 28dcb3fe2d6c21a4cc55579245d08be1857f8876 | |
parent | d78fd7ae03136c0610bee33eeebb4ffe67c752d5 [diff] |
rbd: use sizeof (object) instead of sizeof (type) Fix a few spots in rbd_header_from_disk() to use sizeof (object) rather than sizeof (type). Use a local variable to record sizes to shorten some lines and improve readability. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>