From 97c59ad2c787189e21c427bb1f837cfa1d1f4423 Mon Sep 17 00:00:00 2001 From: rodrigc Date: Sun, 11 Sep 2005 16:02:14 +0000 Subject: Cast bf_sysid to const char * when passing it to strncmp(), because strncmp does not take an unsigned char *. Eliminates warning with GCC 4.0. --- sys/fs/ntfs/ntfs_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/fs/ntfs') diff --git a/sys/fs/ntfs/ntfs_vfsops.c b/sys/fs/ntfs/ntfs_vfsops.c index cfa70a3..5e8973c 100644 --- a/sys/fs/ntfs/ntfs_vfsops.c +++ b/sys/fs/ntfs/ntfs_vfsops.c @@ -299,7 +299,7 @@ ntfs_mountfs(devvp, mp, td) brelse( bp ); bp = NULL; - if (strncmp(ntmp->ntm_bootfile.bf_sysid, NTFS_BBID, NTFS_BBIDLEN)) { + if (strncmp((const char *)ntmp->ntm_bootfile.bf_sysid, NTFS_BBID, NTFS_BBIDLEN)) { error = EINVAL; dprintf(("ntfs_mountfs: invalid boot block\n")); goto out; -- cgit v1.1