summaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-05-10 15:42:54 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-05-10 15:42:54 -0400
commit8368e139c176dcde3b125f4a180ff868729b1862 (patch)
treec4dd77aef93eef5d67b56aa4dc35ce6c4c371cf2 /src/config.h
parentf3ecfc1ee49e1c3ddd3d19ca6166424d72a08a5c (diff)
downloadbfs-8368e139c176dcde3b125f4a180ff868729b1862.tar.xz
config: s/BFS_COUNTOF/countof/
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h
index e17f90b..60bc930 100644
--- a/src/config.h
+++ b/src/config.h
@@ -134,7 +134,7 @@
/**
* Get the length of an array.
*/
-#define BFS_COUNTOF(array) (sizeof(array) / sizeof(0[array]))
+#define countof(array) (sizeof(array) / sizeof(0[array]))
// Lower bound on BFS_FLEX_SIZEOF()
#define BFS_FLEX_LB(type, member, length) (offsetof(type, member) + sizeof(((type *)NULL)->member[0]) * (length))