summaryrefslogtreecommitdiff
path: root/fatfs
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2003-08-03 20:53:54 +0000
committerMarcus Brinkmann <marcus@gnu.org>2003-08-03 20:53:54 +0000
commit141e4b353e0b1a461a6187adbf2c4e3227c508b4 (patch)
tree7064bd6b2955ecfd5b57d77bfca76c55557f9028 /fatfs
parent8adfe46092aa2b28da6a08d9c7ff2ab6651c0557 (diff)
2003-08-03 Marco Gerards <metgerards@student.han.nl>
* inode.c (read_node): Fix typo.
Diffstat (limited to 'fatfs')
-rw-r--r--fatfs/ChangeLog4
-rw-r--r--fatfs/inode.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/fatfs/ChangeLog b/fatfs/ChangeLog
index 91d0642a..09e85fcb 100644
--- a/fatfs/ChangeLog
+++ b/fatfs/ChangeLog
@@ -1,3 +1,7 @@
+2003-08-03 Marco Gerards <metgerards@student.han.nl>
+
+ * inode.c (read_node): Fix typo.
+
2003-08-01 Marco Gerards <metgerards@student.han.nl>
* node-create.c: New file.
diff --git a/fatfs/inode.c b/fatfs/inode.c
index b341f188..f8780eb5 100644
--- a/fatfs/inode.c
+++ b/fatfs/inode.c
@@ -329,8 +329,8 @@ read_node (struct node *np, vm_address_t buf)
st->st_mode = S_IFDIR | 0777;
/* When we read in the node the first time, diskfs_root_node is
zero. */
- if ((diskfs_root_node == 0 || np == diskfs_root_node) &&
- (fat_type = FAT12 || fat_type == FAT16))
+ if ((diskfs_root_node == 0 || np == diskfs_root_node)
+ && (fat_type == FAT12 || fat_type == FAT16))
{
st->st_size = read_dword (dr->file_size);
np->allocsize = nr_of_root_dir_sectors << log2_bytes_per_sector;