sbin/hammer: Remove global variable NumVolumes
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Wed, 23 Dec 2015 07:06:53 +0000 (16:06 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Wed, 23 Dec 2015 07:35:48 +0000 (16:35 +0900)
commitdb7b497cbdd6eb264cf2ab90bb8be82d361f34cd
tree1a3c45fb9fc25a37328b33be06be3ed01d288236
parentd90a96aa69790485db6645e1d3dac8145c39b4b4
sbin/hammer: Remove global variable NumVolumes

Only newfs_hammer uses this, but doesn't need to be global.

(Keeping a number of volumes isn't that important either,
because it can be retrieved directly from volume headers or
by counting the number of elements in the volume_info list)
sbin/hammer/hammer.c
sbin/hammer/hammer_util.h
sbin/hammer/ondisk.c
sbin/newfs_hammer/newfs_hammer.c