]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
get rid of INLINE_FILE_TAG constant
authorAntonio Quartulli <a@unstable.cc>
Fri, 8 May 2020 21:23:56 +0000 (23:23 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 11 May 2020 12:35:45 +0000 (14:35 +0200)
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 <a@unstable.cc>
Acked-by: David Sommerseth <davids@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
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 <gert@greenie.muc.de>
src/openvpn/common.h
src/openvpn/crypto.c

index 4e6f48091cb6b4dabb059aae33b5aad1778f9bdd..623b3e0d7d1f567e25ca3a998e395700063b8a1a 100644 (file)
@@ -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
  */
index 672aa14aae2267504ecb781f7cf7a140607c5577..f1a52d8c771464a14512e938ee07e4c1ea66849a 100644 (file)
@@ -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);