git: sys/vfs/hammer2: Fix -Wpointer-sign warnings
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Wed Jan 25 22:56:29 PST 2023
commit 1b796c700492bfa975e87da580aed252fcfb4415
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date: Thu Jan 26 00:08:08 2023 -0800
sys/vfs/hammer2: Fix -Wpointer-sign warnings
Warned on Linux user space.
The name pointer points to namecache name which is of char*.
vnops passes name pointer to hammer2_dirent_create() which takes char*.
warning: pointer targets in passing argument 2 of 'hammer2_dirent_create' differ in signedness [-Wpointer-sign]
Summary of changes:
sys/vfs/hammer2/hammer2_vfsops.c | 6 +++---
sys/vfs/hammer2/hammer2_vnops.c | 14 +++++++-------
2 files changed, 10 insertions(+), 10 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1b796c700492bfa975e87da580aed252fcfb4415
--
DragonFly BSD source repository
More information about the Commits
mailing list