conf+cmdparse: parenthesize all macro arguments

This commit is contained in:
Miroslav Lichvar
2025-05-19 14:33:39 +02:00
parent b32d85bc54
commit 391882dc41
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@
/* ================================================== */
#define SSCANF_IN_RANGE(s, f, x, n, min, max) \
(sscanf(s, f, (x), (n)) == 1 && *(x) >= (min) && *(x) <= (max))
(sscanf((s), (f), (x), (n)) == 1 && *(x) >= (min) && *(x) <= (max))
/* ================================================== */

2
conf.c
View File

@@ -51,7 +51,7 @@
#define MAX_INCLUDE_LEVEL 10
#define SSCANF_IN_RANGE(s, f, x, n, min, max) \
(sscanf(s, f, (x), (n)) == 1 && *(x) >= (min) && *(x) <= (max))
(sscanf((s), (f), (x), (n)) == 1 && *(x) >= (min) && *(x) <= (max))
/* ================================================== */
/* Forward prototypes */