git: newfs_hammer(8): fix [-Wsizeof-pointer-memaccess]

John Marino marino at crater.dragonflybsd.org
Tue Feb 10 13:01:06 PST 2015


commit 959b14193d96ba91c14036a89881fcc01ee57f12
Author: John Marino <draco at marino.st>
Date:   Tue Feb 10 21:57:32 2015 +0100

    newfs_hammer(8): fix [-Wsizeof-pointer-memaccess]
    
    The device type comparison only worked by accident on x86-64 and not
    reliability on i386 because the sizeof function returned the size of
    the address rather than the size of the vol->type string.  Fix by
    specifying the size of "DEVICE" to strncmp instead.

Summary of changes:
 sbin/newfs_hammer/newfs_hammer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/959b14193d96ba91c14036a89881fcc01ee57f12


-- 
DragonFly BSD source repository



More information about the Commits mailing list