From 9fe5e6bf0ccaccec9c5ea2c3a2cea86dbd9c78dc Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Tue, 9 May 2023 00:31:36 +0300 Subject: Style tweaks Message-Id: <20230508213136.608575-42-bugaevc@gmail.com> --- fatfs/dir.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'fatfs') diff --git a/fatfs/dir.c b/fatfs/dir.c index 71974642..79852a77 100644 --- a/fatfs/dir.c +++ b/fatfs/dir.c @@ -652,19 +652,19 @@ diskfs_direnter_hard (struct node *dp, const char *name, struct node *np, write_word (new->first_cluster_low, np->dn->start_cluster & 0xffff); write_word (new->first_cluster_high, np->dn->start_cluster >> 16); write_dword (new->file_size, np->dn_stat.st_size); - + if (!(name[0] == '.' && (name[1] == '\0' || (name[1] == '.' && name[2] =='\0')))) { vi_key_t entry_key; - + entry_key.dir_inode = dp->cache_id; entry_key.dir_offset = (uintptr_t) ds->entry - (uintptr_t) ds->mapbuf; - + /* Set the key for this inode now because it wasn't know when the inode was initialized. */ vi_change (vi_lookup (np->cache_id), entry_key); - + if (np->dn_stat.st_mode & S_IFDIR) new->attribute = FAT_DIR_ATTR_DIR; } @@ -724,7 +724,7 @@ diskfs_dirrewrite_hard (struct node *dp, struct node *np, struct dirstat *ds) struct node *oldnp; ino_t inode; inode_t vinode; - + /* We need the inode and vinode of the old node. */ entry_key.dir_inode = dp->cache_id; entry_key.dir_offset = (uintptr_t) ds->entry - (uintptr_t) ds->mapbuf; @@ -836,7 +836,7 @@ diskfs_get_directs (struct node *dp, vm_size_t bufsiz, int *amt) { - volatile vm_size_t allocsize; + vm_size_t allocsize; struct dirrect *ep; struct dirent *userp; int i; -- cgit v1.2.3