Attention is currently required from: Arne Schwabe. Frank Lichtenheld has posted comments on this change by Arne Schwabe. ( https://gerrit.openvpn.net/c/openvpn/+/2108?usp=email )
Change subject: Silence remaining cppcheck warnings on macOS and FreeBSD ...................................................................... Patch Set 1: Code-Review-1 (6 comments) Patchset: PS1: Strictly speaking correct, but maybe we can clean this up a bit more? File src/openvpn/route.c: https://gerrit.openvpn.net/c/openvpn/+/2108/comment/373849c7_ad9db057?usp=email : PS1, Line 3336: const struct sockaddr *gate = NULL, *ifp = NULL, *sa; I would move at least the definition of sa down to the first use. https://gerrit.openvpn.net/c/openvpn/+/2108/comment/68ee0b99_f8815ce7?usp=email : PS1, Line 3409: sa = (struct sockaddr *)cp; use the const also in the cast? https://gerrit.openvpn.net/c/openvpn/+/2108/comment/458e2a30_073889a7?usp=email : PS1, Line 3428: if (gate != NULL) For gate we use != NULL and for ifp we use `if (ifp)`. Very inconsistent. https://gerrit.openvpn.net/c/openvpn/+/2108/comment/04eae770_c0099e0d?usp=email : PS1, Line 3431: rgi->gateway.addr = ntohl(((struct sockaddr_in *)gate)->sin_addr.s_addr); since gate is only used once as a sockaddr_in, maybe it should be one directly? https://gerrit.openvpn.net/c/openvpn/+/2108/comment/40fd93a4_471fdced?usp=email : PS1, Line 3440: const struct sockaddr_dl *adl = (struct sockaddr_dl *)ifp; also use the const in the cast here? make ifp a sockaddr_dl directly? -- To view, visit https://gerrit.openvpn.net/c/openvpn/+/2108?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.openvpn.net/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I571e30bb22ec7bffc2c5fa04fdcd73b52ce47e5e Gerrit-Change-Number: 2108 Gerrit-PatchSet: 1 Gerrit-Owner: Arne Schwabe <[email protected]> Gerrit-Reviewer: Frank Lichtenheld <[email protected]> Gerrit-CC: openvpn-devel <[email protected]> Gerrit-Attention: Arne Schwabe <[email protected]> Gerrit-Comment-Date: Tue, 03 Nov 2026 14:10:59 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
_______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
