summaryrefslogtreecommitdiff
path: root/sys/msdosfs/msdosfs_fat.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-12-10 07:46:34 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-12-10 07:46:34 +0000
commit1481aabb49a03d4fdda9e1ad539098d06e5c29ab (patch)
treeac0a2eb016815d8857eb3da85ac2c9bd4f8ddfc8 /sys/msdosfs/msdosfs_fat.c
parent882a55de2fd002351474e9c0e86dbc6a6b57a222 (diff)
fix NULL/0 mixup
Diffstat (limited to 'sys/msdosfs/msdosfs_fat.c')
-rw-r--r--sys/msdosfs/msdosfs_fat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_fat.c b/sys/msdosfs/msdosfs_fat.c
index eee28a18713..1975ee49df0 100644
--- a/sys/msdosfs/msdosfs_fat.c
+++ b/sys/msdosfs/msdosfs_fat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_fat.c,v 1.13 2003/12/04 21:13:37 miod Exp $ */
+/* $OpenBSD: msdosfs_fat.c,v 1.14 2003/12/10 07:46:33 itojun Exp $ */
/* $NetBSD: msdosfs_fat.c,v 1.26 1997/10/17 11:24:02 ws Exp $ */
/*-
@@ -708,7 +708,7 @@ chainlength(pmp, start, count)
while (++idx <= max_idx) {
if (len >= count)
break;
- if ((map = pmp->pm_inusemap[idx]) != NULL) {
+ if ((map = pmp->pm_inusemap[idx]) != 0) {
len += ffs(map) - 1;
break;
}