sbin/hammer: Don't include libhammer.h unconditionally
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 12 Aug 2016 13:29:10 +0000 (22:29 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 12 Aug 2016 15:14:01 +0000 (00:14 +0900)
commitea458aa6c20f3b35224bc18120b29d208a89b5ef
treec9e7481529d0f308a98e280a0cab0adaef71eb85
parentd846dce0396aaf8521b35651857538a5a1e4795d
sbin/hammer: Don't include libhammer.h unconditionally

Though /sbin/hammer links to libhammer, only two commands use it.

Move SNAPSHOTS_BASE from cmd_cleanup.c to hammer.h.
This macro is defined in both sbin/hammer and libhammer.
It apparently doesn't need to ask an external library for snapshot location.

 # grep libhammer sbin/hammer sbin/newfs_hammer -rIl
 sbin/hammer/cmd_info.c
 sbin/hammer/cmd_snapshot.c
 sbin/hammer/hammer.h
sbin/hammer/cmd_cleanup.c
sbin/hammer/cmd_info.c
sbin/hammer/cmd_snapshot.c
sbin/hammer/hammer.h