From 0ce799407d2116db70de95452e77a33a61e162a9 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 26 Apr 1996 20:29:05 +0000 Subject: (allocino): Parenthesize test correctly. --- ufs-fsck/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ufs-fsck') 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; -- cgit v1.2.3