fix compiler warnings: -Wparentheses

This commit is contained in:
[anp/hsw]
2024-08-02 23:16:30 +07:00
parent b65d0f2d73
commit 81dbfca4a4
11 changed files with 34 additions and 34 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);