summaryrefslogtreecommitdiffstats
path: root/sys/fs/ntfs
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2005-09-11 16:02:14 +0000
committerrodrigc <rodrigc@FreeBSD.org>2005-09-11 16:02:14 +0000
commit97c59ad2c787189e21c427bb1f837cfa1d1f4423 (patch)
tree929dc8a972985aea976b220c4ee28e2ddd92b55c /sys/fs/ntfs
parentaeeba2bf5b46351fa5d8ea3137d7c4f589eba88e (diff)
downloadFreeBSD-src-97c59ad2c787189e21c427bb1f837cfa1d1f4423.zip
FreeBSD-src-97c59ad2c787189e21c427bb1f837cfa1d1f4423.tar.gz
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.
Diffstat (limited to 'sys/fs/ntfs')
-rw-r--r--sys/fs/ntfs/ntfs_vfsops.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud