sbin/hammer: Move score_printf()/hammer_check_restrict() to cmd_mirror.c
commit8679ed648f6da820877a735b4b6e6d0676ddc324
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 11 Aug 2016 07:37:46 +0000 (11 16:37 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 11 Aug 2016 12:38:51 +0000 (11 21:38 +0900)
treeee5964c09929035534b4b15c6e7f26720e3941ee
parenta19bad8990fe1a766f630d970e25cf258d6cbf08
sbin/hammer: Move score_printf()/hammer_check_restrict() to cmd_mirror.c

Make sbin/hammer/misc.c independent of /sbin/hammer's global variables
(used by two functions score_printf()/hammer_check_restrict()) that
aren't accessible from other programs such as /sbin/newfs_hammer
which already links to some of sbin/hammer/*.o's.

/sbin/newfs_hammer could make use of misc.o, but globals have been
preventing from linking against sbin/hammer/misc.o. If these are
to be used by other hammer commands, they need to be reimplemented
without dependencies.
sbin/hammer/cmd_mirror.c
sbin/hammer/hammer.c
sbin/hammer/hammer.h
sbin/hammer/hammer_util.h
sbin/hammer/misc.c