summaryrefslogtreecommitdiff
path: root/ufs-fsck/inode.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-04-26 20:29:05 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-04-26 20:29:05 +0000
commit0ce799407d2116db70de95452e77a33a61e162a9 (patch)
treeaed5f9adb766aa74d18b5fd48df6fbf21e06c33e /ufs-fsck/inode.c
parent8ec00f233a543dbd9d629e6738e5b80f95117ced (diff)
(allocino): Parenthesize test correctly.
Diffstat (limited to 'ufs-fsck/inode.c')
-rw-r--r--ufs-fsck/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ufs-fsck/inode.c b/ufs-fsck/inode.c
index afb8b1a4..b2973c9d 100644
--- a/ufs-fsck/inode.c
+++ b/ufs-fsck/inode.c
@@ -1,5 +1,5 @@
/* Inode allocation, deallocation, etc.
- Copyright (C) 1994 Free Software Foundation, Inc.
+ Copyright (C) 1994, 1996 Free Software Foundation, Inc.
Written by Michael I. Bushnell.
This file is part of the GNU Hurd.
@@ -138,7 +138,7 @@ allocino (ino_t request, mode_t mode)
return 0;
}
- if (mode & IFMT == IFDIR)
+ if ((mode & IFMT) == IFDIR)
inodestate[ino] = DIRECTORY | DIR_REF;
else
inodestate[ino] = REG;