I haven't tested it in the MinGW environment, but checked the code in MSVC and ensured that setenv_foreign_option is indeed not used at all in Win32.
Acked-by: Lev Stipakov <lstipa...@gmail.com> pe 3. helmik. 2023 klo 21.15 Frank Lichtenheld (fr...@lichtenheld.com) kirjoitti: > > Signed-off-by: Frank Lichtenheld <fr...@lichtenheld.com> > --- > src/openvpn/options.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/openvpn/options.c b/src/openvpn/options.c > index 6ae3faf8..ab1b01cf 100644 > --- a/src/openvpn/options.c > +++ b/src/openvpn/options.c > @@ -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) > -- > 2.34.1 > > > > _______________________________________________ > Openvpn-devel mailing list > Openvpn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-devel -- -Lev _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel