mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
conf+cmdparse: parenthesize all macro arguments
This commit is contained in:
@@ -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
2
conf.c
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user