git: sbin/hammer: Declare char* at the top of block scope

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Mar 20 03:27:10 PDT 2016


commit 0b7c8f4cef679a6118c7d05631c644b3206d41d3
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Mar 20 16:11:19 2016 +0900

    sbin/hammer: Declare char* at the top of block scope
    
    though gcc compiles without this.
    
    Also change char* to const char*.
    These char*s are pointers to argv[].

Summary of changes:
 sbin/hammer/cmd_volume.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0b7c8f4cef679a6118c7d05631c644b3206d41d3


-- 
DragonFly BSD source repository



More information about the Commits mailing list