So, yes, bzero() has been officially replaced by memset() 400 years ago,
but now cppcheck is making a big fuzz about it... - since CLEAR() is what
we use in most other places where we want to "zero a structure", this
brings the code more in line with the rest, and appeases cppcheck...
This and the %u / const changes bring no functional changes, so not
running my own checks, relying on BB.
Your patch has been applied to the master branch.
commit 340b9021f401b6638392193db933c2af6c9e0db5
Author: Arne Schwabe
Date: Sun Oct 18 16:54:06 2026 +0200
Fix cppcheck warnings on macOS
Signed-off-by: Arne Schwabe <[email protected]>
Acked-by: Gert Doering <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2014
Message-Id: <[email protected]>
URL:
https://www.mail-archive.com/[email protected]/msg40015.html
Signed-off-by: Gert Doering <[email protected]>
--
kind regards,
Gert Doering
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel