]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Move adjust_power_of_2() to integer.h
authorSteffan Karger <steffan.karger@fox-it.com>
Wed, 21 Jun 2017 21:10:43 +0000 (23:10 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 27 Jun 2017 18:33:39 +0000 (20:33 +0200)
commit9fc0e963c757ffec3cc9fbf797fb7609f409c370
tree912c04de054001f1c2e0b7958a0791d254713a3b
parent5e6e4b7d21150ea2f0738948d5a9bd0c7d910e1a
Move adjust_power_of_2() to integer.h

misc.c is a mess of incoherent functions, and is therefore included by
virtually all our source files.  That makes testing harder than it should
be.  As a first step of cleaning up misc.c, move adjust_power_of_2() to
integer.h, which is a more suitable place for a function like this.

This allows us to remove the duplicate implementation from test_argv.c.

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20170621211043.6490-1-steffan@karger.me>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg14940.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/argv.c
src/openvpn/integer.h
src/openvpn/list.c
src/openvpn/mbuf.c
src/openvpn/misc.c
src/openvpn/misc.h
tests/unit_tests/openvpn/test_argv.c