]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Windows: fix unused function setenv_foreign_option
authorFrank Lichtenheld <frank@lichtenheld.com>
Fri, 3 Feb 2023 19:14:36 +0000 (20:14 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 7 Feb 2023 16:17:24 +0000 (17:17 +0100)
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Message-Id: <20230203191440.136050-2-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26145.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c

index 6ae3faf89f6a9a173cc5b124e9e8e56ed59a3f05..ab1b01cf73c62e5696d9c813fa9fddf839e6696a 100644 (file)
@@ -1041,6 +1041,7 @@ setenv_settings(struct env_set *es, const struct options *o)
     }
 }
 
+#ifndef _WIN32
 static void
 setenv_foreign_option(struct options *o, const char *argv[], int len, struct env_set *es)
 {
@@ -1078,6 +1079,7 @@ setenv_foreign_option(struct options *o, const char *argv[], int len, struct env
         gc_free(&gc);
     }
 }
+#endif /* ifndef _WIN32 */
 
 static in_addr_t
 get_ip_addr(const char *ip_string, int msglevel, bool *error)