Skip to content

Commit ebf781b

Browse files
flichtenheldcron2
authored andcommitted
options: Factor out parsing code to separate options_parse.c
For easier testability. And because everything that reduces the length of that file in a sensible manner is a good idea. Change-Id: I18e38862df1318740928c6cfa21dc4dcd7d44b89 Signed-off-by: Frank Lichtenheld <[email protected]> Acked-by: Gert Doering <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1242 Message-Id: <[email protected]> URL: https://sourceforge.net/p/openvpn/mailman/message/59243506/ Signed-off-by: Gert Doering <[email protected]>
1 parent 790b812 commit ebf781b

File tree

6 files changed

+669
-622
lines changed

6 files changed

+669
-622
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ set(SOURCE_FILES
513513
src/openvpn/options.h
514514
src/openvpn/options_util.c
515515
src/openvpn/options_util.h
516+
src/openvpn/options_parse.c
516517
src/openvpn/otime.c
517518
src/openvpn/otime.h
518519
src/openvpn/ovpn_dco_win.h

src/openvpn/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ openvpn_SOURCES = \
109109
openvpn.c openvpn.h \
110110
options.c options.h \
111111
options_util.c options_util.h \
112+
options_parse.c \
112113
otime.c otime.h \
113114
packet_id.c packet_id.h \
114115
perf.c perf.h \

src/openvpn/common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
#ifndef COMMON_H
2424
#define COMMON_H
2525

26+
#include <stdint.h>
27+
2628
/*
2729
* Statistics counters and associated printf format.
2830
*/

0 commit comments

Comments
 (0)