git: sbin/hammer2: Add sbin/hammer2/hammer2_subs.h

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Sep 29 11:08:25 PDT 2019


commit a860700207674c889204cb3d9052b74feb9fd62d
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Sep 30 01:14:41 2019 +0900

    sbin/hammer2: Add sbin/hammer2/hammer2_subs.h
    
    Separate a header for subs.c from <hammer2.h>.
    
    This lets other HAMMER2 binaries drop unneeded dependencies
    required to use sbin/hammer2/subs.c (various unneeded OpenSSL
    header includes via <dmsg.h> via <hammer2.h>, global variables
    via <hammer2.h>).
    
    This doesn't affect existing files which include <hammer2.h>.

Summary of changes:
 sbin/fsck_hammer2/fsck_hammer2.h                   | 16 --------
 sbin/fsck_hammer2/test.c                           |  1 +
 sbin/hammer2/hammer2.h                             | 19 +---------
 .../fsck_hammer2.h => hammer2/hammer2_subs.h}      | 43 ++++++++++------------
 sbin/hammer2/subs.c                                | 16 +++++++-
 sbin/newfs_hammer2/Makefile                        |  1 -
 sbin/newfs_hammer2/newfs_hammer2.c                 |  4 +-
 sys/vfs/hammer2/hammer2_ioctl.h                    |  3 ++
 8 files changed, 43 insertions(+), 60 deletions(-)
 copy sbin/{fsck_hammer2/fsck_hammer2.h => hammer2/hammer2_subs.h} (70%)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list