diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-16 18:19:42 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-16 18:19:42 +0000 |
| commit | ff769306baeaae866071c92a955fc90fa4eeb6ba (patch) | |
| tree | beee00da8e28cce0943513243ce95f1a7aa0b04a | |
| parent | 7da3173ead8cdf8ceab72f09e73369bfbe03d28d (diff) | |
macro safety
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | util/nvmutil/nvmutil.c | 6 |
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 |
