Am 18.05.23 um 09:09 schrieb Gert Doering:
Hi,

On Thu, May 18, 2023 at 09:00:26AM +0200, Matthias Andree wrote:
That, and constants usually go on the left-hand side of comparison so
the compiler flags the accidental if (foo = NULL) even if it does not
produce "add a pair of parentheses if you really mean to use an
assignment as if() expression" like warnings. You can't if (NULL = foo)...
This is actually not OpenVPN style today (it's "syzzer style" so we find
it in a few crypto modules).

I personally find if (B) or if (!B) more concise and clearer, too.



_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to