summaryrefslogtreecommitdiffstats
path: root/mtab.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-04-04 09:33:21 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-04-16 12:09:16 -0400
commit8f5a73a6585bd425807430fd80ce1e3a737f4c5f (patch)
treefde0928db3d0f30b2d156ded10383eee2a9b3b91 /mtab.c
parent7241d6cc35134fcb5ec6dfa81bbd01e430b2415f (diff)
downloadbfs-8f5a73a6585bd425807430fd80ce1e3a737f4c5f.tar.xz
style: Use &array[i] rather than array + i
Diffstat (limited to 'mtab.c')
-rw-r--r--mtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mtab.c b/mtab.c
index 8eb90bb..adc3f58 100644
--- a/mtab.c
+++ b/mtab.c
@@ -196,7 +196,7 @@ fail:
static void bfs_mtab_fill_types(struct bfs_mtab *mtab) {
for (size_t i = 0; i < darray_length(mtab->entries); ++i) {
- struct bfs_mtab_entry *entry = mtab->entries + i;
+ struct bfs_mtab_entry *entry = &mtab->entries[i];
struct bfs_stat sb;
if (bfs_stat(AT_FDCWD, entry->path, BFS_STAT_NOFOLLOW | BFS_STAT_NOSYNC, &sb) != 0) {