public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dfc769
)
filesys: handle 8bit bools
author
Alan Cox
<alan@linux.intel.com>
Thu, 23 Nov 2017 02:25:41 +0000
(
02:25
+0000)
committer
Alan Cox
<alan@linux.intel.com>
Thu, 23 Nov 2017 02:25:41 +0000
(
02:25
+0000)
Kernel/filesys.c
patch
|
blob
|
history
diff --git
a/Kernel/filesys.c
b/Kernel/filesys.c
index
fe3838c
..
8153c6f
100644
(file)
--- a/
Kernel/filesys.c
+++ b/
Kernel/filesys.c
@@
-849,7
+849,7
@@
void wr_inode(inoptr ino)
/* isdevice(ino) returns true if ino points to a device */
bool isdevice(inoptr ino)
{
- return (ino->c_node.i_mode & F_CDEV);
+ return
!!
(ino->c_node.i_mode & F_CDEV);
}