git: sbin/newfs_hammer: Link against sbin/hammer/misc.o

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Aug 11 05:49:59 PDT 2016


commit f3f3fa72bcff0ab7e8aa978aedb7674c5d3060be
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Aug 11 16:44:39 2016 +0900

    sbin/newfs_hammer: Link against sbin/hammer/misc.o
    
    Make /sbin/newfs_hammer link to sbin/hammer/misc.o, and use
    sizetostr() via sbin/hammer/misc.o instead of having its own one,
    by moving sbin/hammer/misc.c prototypes to hammer_util.h.
    
    It's okay to do this because /sbin/newfs_hammer fully depends on
    data structures of sbin/hammer/*. It's just better to make use of
    sbin/hammer/misc.o except that the binary becomes a bit larger.
    
    The difference between hammer.h and hammer_util.h is that hammer.h
    is specific to /sbin/hammer. hammer_util.h seems to have been made
    for more general stuff that could be used by other programs like
    /sbin/hammer (but not outbox programs as the header isn't exposed
    to outside the dfly source).

Summary of changes:
 sbin/hammer/hammer.h             |  4 ----
 sbin/hammer/hammer_util.h        |  5 +++++
 sbin/newfs_hammer/Makefile       |  2 +-
 sbin/newfs_hammer/newfs_hammer.c | 28 ----------------------------
 4 files changed, 6 insertions(+), 33 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list