sbin/hammer: Make function prototype explicit
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 11 Jul 2015 10:37:40 +0000 (19:37 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 11 Jul 2015 17:59:06 +0000 (02:59 +0900)
commit3eccc3624d9927772735900671eb5918b3e1206e
tree1f4481f8b683b86253c15ea253a32fa5f5bc2611
parent44af2e17675e22259df73d96a341096645c252cd
sbin/hammer: Make function prototype explicit

- format_undomap() is only for root volume, so it's better to have
  the same first argument type as format_freemap(). It explicitly
  shows that the volume is the root volume.

- Also add assertions to check the given pointer is root volume.
  (it's invalid for non-root volumes to call these at least for now)
sbin/hammer/hammer_util.h
sbin/hammer/ondisk.c
sbin/newfs_hammer/newfs_hammer.c