From: Antonio Quartulli Date: Fri, 8 May 2020 21:23:56 +0000 (+0200) Subject: get rid of INLINE_FILE_TAG constant X-Git-Tag: v2.5_beta1~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27ad978fd6721f05f0c484a1bdbf775b0ab36ab2;p=thirdparty%2Fopenvpn.git get rid of INLINE_FILE_TAG constant Now that the whole inline logic has been converted to using bool flags, the INLINE_FILE_TAG constant is not useful anymore. Get rid of the constant as it's now unused and to prevent any future developer from mistakenly use it again. Signed-off-by: Antonio Quartulli Acked-by: David Sommerseth Acked-by: Gert Doering Message-Id: <20200508212356.18522-1-a@unstable.cc> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19863.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/common.h b/src/openvpn/common.h index 4e6f48091..623b3e0d7 100644 --- a/src/openvpn/common.h +++ b/src/openvpn/common.h @@ -88,12 +88,6 @@ typedef unsigned long ptr_type; */ #define PUSH_REQUEST_INTERVAL 5 -/* - * A sort of pseudo-filename for data provided inline within - * the configuration file. - */ -#define INLINE_FILE_TAG "[[INLINE]]" - /* * Script security warning */ diff --git a/src/openvpn/crypto.c b/src/openvpn/crypto.c index 672aa14aa..f1a52d8c7 100644 --- a/src/openvpn/crypto.c +++ b/src/openvpn/crypto.c @@ -1189,7 +1189,7 @@ print_key_filename(const char *str, bool is_inline) { if (is_inline) { - return INLINE_FILE_TAG; + return "[[INLINE]]"; } return np(str);