summaryrefslogtreecommitdiffstats
path: root/src/dir.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-05-03 09:29:19 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-05-03 09:29:19 -0400
commit7e5357a1cf40ebaa7ffaeebfd3a88c3ba93eb1a7 (patch)
tree5a792a12d92518d2250611e05332f9904307f157 /src/dir.c
parent6d59961d6d5ce91529a17bdad380ee78fa866564 (diff)
downloadbfs-7e5357a1cf40ebaa7ffaeebfd3a88c3ba93eb1a7.tar.xz
style: Don't use tabs to indent preprocessor directives
Diffstat (limited to 'src/dir.c')
-rw-r--r--src/dir.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/dir.c b/src/dir.c
index 2719c15..eb6e3e0 100644
--- a/src/dir.c
+++ b/src/dir.c
@@ -16,16 +16,16 @@
#include <unistd.h>
#ifndef BFS_GETDENTS
-# define BFS_GETDENTS (__linux__ || __FreeBSD__)
+# define BFS_GETDENTS (__linux__ || __FreeBSD__)
#endif
#if BFS_GETDENTS
-# if __has_feature(memory_sanitizer)
-# include <sanitizer/msan_interface.h>
-# endif
-# if __linux__
-# include <sys/syscall.h>
-# endif
+# if __has_feature(memory_sanitizer)
+# include <sanitizer/msan_interface.h>
+# endif
+# if __linux__
+# include <sys/syscall.h>
+# endif
/** getdents() syscall wrapper. */
static ssize_t bfs_getdents(int fd, void *buf, size_t size) {
@@ -119,10 +119,10 @@ struct bfs_dir {
};
#if BFS_GETDENTS
-# define DIR_SIZE (64 << 10)
-# define BUF_SIZE (DIR_SIZE - sizeof(struct bfs_dir))
+# define DIR_SIZE (64 << 10)
+# define BUF_SIZE (DIR_SIZE - sizeof(struct bfs_dir))
#else
-# define DIR_SIZE sizeof(struct bfs_dir)
+# define DIR_SIZE sizeof(struct bfs_dir)
#endif
struct bfs_dir *bfs_opendir(int at_fd, const char *at_path) {