fix compiler warnings: -Wparentheses

This commit is contained in:
[anp/hsw]
2024-08-02 23:16:30 +07:00
committed by bol-van
parent 183ce40aa8
commit 419745652b
10 changed files with 30 additions and 30 deletions

View File

@@ -280,7 +280,7 @@ static void parse_params(int argc, char *argv[])
break;
}
}
if (plen1 != -1 && (!params.ipv6 && (plen1>31 || plen2>31) || params.ipv6 && (plen1>127 || plen2>127)))
if (plen1 != -1 && ((!params.ipv6 && (plen1>31 || plen2>31)) || (params.ipv6 && (plen1>127 || plen2>127))))
{
fprintf(stderr, "invalid parameter for prefix-length\n");
exit(1);