mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 20:45:07 -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) \
|
#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 MAX_INCLUDE_LEVEL 10
|
||||||
|
|
||||||
#define SSCANF_IN_RANGE(s, f, x, n, min, max) \
|
#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 */
|
/* Forward prototypes */
|
||||||
|
|||||||
Reference in New Issue
Block a user