git: sbin/hammer: Make function prototype explicit
    Tomohiro Kusumi 
    tkusumi at crater.dragonflybsd.org
       
    Sat Jul 11 11:31:52 PDT 2015
    
    
  
commit 3eccc3624d9927772735900671eb5918b3e1206e
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sat Jul 11 19:37:40 2015 +0900
    sbin/hammer: Make function prototype explicit
    
    - format_undomap() is only for root volume, so it's better to have
      the same first argument type as format_freemap(). It explicitly
      shows that the volume is the root volume.
    
    - Also add assertions to check the given pointer is root volume.
      (it's invalid for non-root volumes to call these at least for now)
Summary of changes:
 sbin/hammer/hammer_util.h        |  2 +-
 sbin/hammer/ondisk.c             | 10 +++++++++-
 sbin/newfs_hammer/newfs_hammer.c |  2 +-
 3 files changed, 11 insertions(+), 3 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3eccc3624d9927772735900671eb5918b3e1206e
-- 
DragonFly BSD source repository
    
    
More information about the Commits
mailing list