summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-16 18:19:42 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-16 18:19:42 +0000
commitff769306baeaae866071c92a955fc90fa4eeb6ba (patch)
treebeee00da8e28cce0943513243ce95f1a7aa0b04a
parent7da3173ead8cdf8ceab72f09e73369bfbe03d28d (diff)
macro safety
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/nvmutil/nvmutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 580dc163..fce6e744 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -714,14 +714,14 @@ char *tname = NULL;
#ifndef S_ISREG
#ifdef S_IFMT
-#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
+#define S_ISREG(m) (((m) & (S_IFMT)) == (S_IFREG))
#else
-#define S_ISREG(m) (((m) & S_IFREG) == S_IFREG)
+#define S_ISREG(m) (((m) & (S_IFREG)) == (S_IFREG))
#endif
#endif
#ifndef S_ISREG
-#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
+#define S_ISREG(m) (((m) & (S_IFMT) == (S_IFREG))
#endif
int