Attention is currently required from: Frank Lichtenheld. Arne Schwabe 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: (5 comments) File src/openvpn/route.c: https://gerrit.openvpn.net/c/openvpn/+/2108/comment/dab3f781_ec4e21b2?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. Done https://gerrit.openvpn.net/c/openvpn/+/2108/comment/8a870273_781e1522?usp=email : PS1, Line 3409: sa = (struct sockaddr *)cp; > use the const also in the cast? Done https://gerrit.openvpn.net/c/openvpn/+/2108/comment/2e37895e_e3b4604e?usp=email : PS1, Line 3428: if (gate != NULL) > For gate we use != NULL and for ifp we use `if (ifp)`. Very inconsistent. Done https://gerrit.openvpn.net/c/openvpn/+/2108/comment/96da2ca0_c669862f?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? Changed type of both ifp (replaced by adl) and gate. https://gerrit.openvpn.net/c/openvpn/+/2108/comment/27c2c099_d217562a?usp=email : PS1, Line 3440: const struct sockaddr_dl *adl = (struct sockaddr_dl *)ifp; > also use the const in the cast here? […] Yes. remove ifp and directly assiging adl with a cast. -- 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: Frank Lichtenheld <[email protected]> Gerrit-Comment-Date: Wed, 11 Nov 2026 13:41:55 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: Frank Lichtenheld <[email protected]>
_______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
