[Openvpn-devel,v2,1/2] config-version.h: remove unused includes

Message ID 20220808085411.9159-1-frank@lichtenheld.com
State Accepted
Headers show
Series [Openvpn-devel,v2,1/2] config-version.h: remove unused includes | expand

Commit Message

Frank Lichtenheld Aug. 7, 2022, 10:54 p.m. UTC
We only need to include this when we want the
git version.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
---
 src/openvpn/block_dns.c | 3 ---
 src/tapctl/main.c       | 3 ---
 2 files changed, 6 deletions(-)

v2: Do not remove include in plugin.c

Comments

Gert Doering Aug. 8, 2022, 6:09 a.m. UTC | #1
Acked-by: Gert Doering <gert@greenie.muc.de>

Test compiled on ubuntu18/mingw.

Your patch has been applied to the master branch.

commit d92075e0ae6dba84a2e30e4ec12ca29250945371
Author: Frank Lichtenheld
Date:   Mon Aug 8 10:54:11 2022 +0200

     config-version.h: remove unused includes

     Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
     Acked-by: Gert Doering <gert@greenie.muc.de>
     Message-Id: <20220808085411.9159-1-frank@lichtenheld.com>
     URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24839.html
     Signed-off-by: Gert Doering <gert@greenie.muc.de>


--
kind regards,

Gert Doering

Patch

diff --git a/src/openvpn/block_dns.c b/src/openvpn/block_dns.c
index 88e933fb..7849ec53 100644
--- a/src/openvpn/block_dns.c
+++ b/src/openvpn/block_dns.c
@@ -28,9 +28,6 @@ 
 #elif defined(_MSC_VER)
 #include "config-msvc.h"
 #endif
-#ifdef HAVE_CONFIG_VERSION_H
-#include "config-version.h"
-#endif
 
 #include "syshead.h"
 
diff --git a/src/tapctl/main.c b/src/tapctl/main.c
index a98cc6a8..0724cc4d 100644
--- a/src/tapctl/main.c
+++ b/src/tapctl/main.c
@@ -24,9 +24,6 @@ 
 #elif defined(_MSC_VER)
 #include <config-msvc.h>
 #endif
-#ifdef HAVE_CONFIG_VERSION_H
-#include <config-version.h>
-#endif
 
 #include "tap.h"
 #include "error.h"