git: sys/vfs/hammer2: Avoid void* pointer arithmetic

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Jan 8 22:38:23 PST 2023


commit 3f53c53686fc9e236fb9949c8d2a665ce27832be
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Mon Jan 9 00:12:47 2023 -0800

    sys/vfs/hammer2: Avoid void* pointer arithmetic
    
    Warned on NetBSD.
    error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]
    
    This commit only fixes HAMMER2 code.
    There are obviously bunch of others in DragonFly tree.

Summary of changes:
 sys/vfs/hammer2/hammer2_io.c       | 2 +-
 sys/vfs/hammer2/hammer2_ondisk.c   | 6 +++---
 sys/vfs/hammer2/hammer2_strategy.c | 8 ++++----
 sys/vfs/hammer2/hammer2_vnops.c    | 2 +-
 4 files changed, 9 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3f53c53686fc9e236fb9949c8d2a665ce27832be


-- 
DragonFly BSD source repository


More information about the Commits mailing list