Skip to content

cleanup: avoid using ~0

Alon Bar-Lev openvpn-devel 1 version In review

Get series with b4
b4 am [email protected]...

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4cleanup: avoid using ~0 - genericconfig-msvc.h configure.ac src/openvpn/route.c +1 more+7 -24 replies
2/4cleanup: avoid using ~0 - ipv6src/openvpn/route.c+1 -12 replies
3/4cleanup: avoid using ~0 - netmasksrc/openvpn/basic.h src/openvpn/mroute.c src/openvpn/pf.c +3 more+12 -102 replies
4/4cleanup: avoid using ~0 - windowssrc/openvpn/route.c src/openvpn/tun.c src/openvpn/tun.h+42 -361 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Openvpn-devel] [PATCH 0/4] cleanup: avoid using ~0

Remove the arithmetic magic in favor of constants or alternatives.

Alon Bar-Lev (4):
cleanup: avoid using ~0 - generic
cleanup: avoid using ~0 - ipv6
cleanup: avoid using ~0 - netmask
cleanup: avoid using ~0 - windows

 config-msvc.h         |    1 +
 configure.ac          |    2 +-
 src/openvpn/basic.h   |    2 ++
 src/openvpn/mroute.c  |    2 +-
 src/openvpn/pf.c      |    2 +-
 src/openvpn/route.c   |   46 +++++++++++++++++++++++++---------------------
 src/openvpn/route.h   |    2 +-
 src/openvpn/syshead.h |    4 ++++
 src/openvpn/tun.c     |   48 ++++++++++++++++++++++++------------------------
 src/openvpn/tun.h     |    2 ++
 10 files changed, 62 insertions(+), 49 deletions(-)
Signature · 1 line
1.7.3.4