From: Miroslav Lichvar Date: Mon, 19 May 2025 12:33:39 +0000 (+0200) Subject: conf+cmdparse: parenthesize all macro arguments X-Git-Tag: 4.7-pre1~7 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=391882dc41fd215fc3714797607ba54614a29ac2;p=thirdparty%2Fchrony.git conf+cmdparse: parenthesize all macro arguments --- diff --git a/cmdparse.c b/cmdparse.c index 9202d76c..e84bca9d 100644 --- a/cmdparse.c +++ b/cmdparse.c @@ -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)) /* ================================================== */ diff --git a/conf.c b/conf.c index 1e023fca..cd3466b8 100644 --- a/conf.c +++ b/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 */