sbin/hammer: Cleanup get_buf_crc() after 965831f0
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 15 Apr 2017 14:25:21 +0000 (17:25 +0300)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 15 Apr 2017 18:49:04 +0000 (21:49 +0300)
commit2bcf3d94a428176f511dcc26ab53f66f1a56e975
tree58b74da183780794a00d9f1682e86db08de46e67
parent06f423f07dabba99c8a25962a701338d84229839
sbin/hammer: Cleanup get_buf_crc() after 965831f0

Make get_buf_crc() look the same as get_inode_crc().
This is much more readable with slightly more overhead to go through
a while loop twice (at most where each loop may continue max 4 times).
sbin/hammer/cmd_show.c