git: sbin/hammer: Cleanup blocks with a single statement

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Apr 9 11:51:15 PDT 2017


commit 52e2f1b52011af14814bda6122c29e91ab740ce3
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Apr 9 03:04:16 2017 +0300

    sbin/hammer: Cleanup blocks with a single statement
    
    This commit basically does the same as what Linux kernel's coding
    style mentions for braces, which is basically the same with BSDs.
    https://github.com/torvalds/linux/blob/master/Documentation/process/coding-style.rst#3-placing-braces-and-spaces
    
    No diff in sbin/hammer/hammer binary when assert(3) is disabled.

Summary of changes:
 sbin/hammer/blockmap.c      |  3 +-
 sbin/hammer/cache.c         |  3 +-
 sbin/hammer/cmd_abort.c     | 12 ++----
 sbin/hammer/cmd_blockmap.c  | 24 ++++--------
 sbin/hammer/cmd_cleanup.c   | 67 ++++++++++++---------------------
 sbin/hammer/cmd_config.c    | 35 ++++++-----------
 sbin/hammer/cmd_dedup.c     | 42 +++++++--------------
 sbin/hammer/cmd_history.c   |  3 +-
 sbin/hammer/cmd_mirror.c    | 79 +++++++++++++-------------------------
 sbin/hammer/cmd_pfs.c       | 84 ++++++++++++++++-------------------------
 sbin/hammer/cmd_rebalance.c |  3 +-
 sbin/hammer/cmd_reblock.c   |  3 +-
 sbin/hammer/cmd_recover.c   | 56 +++++++++++----------------
 sbin/hammer/cmd_show.c      | 39 +++++++------------
 sbin/hammer/cmd_snapshot.c  | 92 ++++++++++++++-------------------------------
 sbin/hammer/cmd_softprune.c | 17 +++------
 sbin/hammer/cmd_stats.c     |  3 +-
 sbin/hammer/cmd_strip.c     |  5 +--
 sbin/hammer/cmd_synctid.c   |  5 +--
 sbin/hammer/cmd_version.c   |  3 +-
 sbin/hammer/cmd_volume.c    |  5 +--
 sbin/hammer/cycle.c         |  6 +--
 sbin/hammer/hammer.c        | 18 ++++-----
 sbin/hammer/misc.c          | 23 +++++-------
 sbin/hammer/ondisk.c        | 69 ++++++++++++----------------------
 sbin/hammer/test_dupkey.c   |  3 +-
 26 files changed, 246 insertions(+), 456 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/52e2f1b52011af14814bda6122c29e91ab740ce3


-- 
DragonFly BSD source repository


More information about the Commits mailing list