diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2005-09-11 16:02:14 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2005-09-11 16:02:14 +0000 |
commit | 97c59ad2c787189e21c427bb1f837cfa1d1f4423 (patch) | |
tree | 929dc8a972985aea976b220c4ee28e2ddd92b55c /sys/fs/ntfs/ntfs_vfsops.c | |
parent | aeeba2bf5b46351fa5d8ea3137d7c4f589eba88e (diff) | |
download | FreeBSD-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/ntfs_vfsops.c')
-rw-r--r-- | sys/fs/ntfs/ntfs_vfsops.c | 2 |
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; |