git: sbin/hammer: Don't include libhammer.h unconditionally

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Aug 12 08:26:46 PDT 2016


commit ea458aa6c20f3b35224bc18120b29d208a89b5ef
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Fri Aug 12 22:29:10 2016 +0900

    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

Summary of changes:
 sbin/hammer/cmd_cleanup.c  | 6 ------
 sbin/hammer/cmd_info.c     | 1 +
 sbin/hammer/cmd_snapshot.c | 2 ++
 sbin/hammer/hammer.h       | 9 +++++++--
 4 files changed, 10 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ea458aa6c20f3b35224bc18120b29d208a89b5ef


-- 
DragonFly BSD source repository



More information about the Commits mailing list