From 8f5a73a6585bd425807430fd80ce1e3a737f4c5f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 4 Apr 2022 09:33:21 -0400 Subject: style: Use &array[i] rather than array + i --- mtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mtab.c') 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) { -- cgit v1.2.3