A bunch of functions are defined and used within init.c only.
We can therefore drop their declaration in init.h and make
them static.
Change-Id: I2b5429841bcd46376241890ace50b82a291b7400
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1346
Message-Id: <
20251104104448.98093-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34193.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
static bool do_deferred_p2p_ncp(struct context *c);
static bool do_deferred_p2p_ncp(struct context *c);
context_clear(struct context *c)
{
CLEAR(*c);
}
context_clear(struct context *c)
{
CLEAR(*c);
}
context_clear_1(struct context *c)
{
CLEAR(c->c1);
context_clear_1(struct context *c)
{
CLEAR(c->c1);
-/*
- * Initialize a tunnel instance, handle pre and post-init
- * signal settings.
- */
-void
-init_instance_handle_signals(struct context *c, const struct env_set *env, const unsigned int flags)
-{
- pre_init_signal_catch();
- init_instance(c, env, flags);
- post_init_signal_catch();
-
- /*
- * This is done so that signals thrown during
- * initialization can bring us back to
- * a management hold.
- */
- if (IS_SIG(c))
- {
- remap_signal(c);
- uninit_management_callback();
- }
-}
-
/*
* Initialize a tunnel instance.
*/
/*
* Initialize a tunnel instance.
*/
init_instance(struct context *c, const struct env_set *env, const unsigned int flags)
{
const struct options *options = &c->options;
init_instance(struct context *c, const struct env_set *env, const unsigned int flags)
{
const struct options *options = &c->options;
+/*
+ * Initialize a tunnel instance, handle pre and post-init
+ * signal settings.
+ */
+void
+init_instance_handle_signals(struct context *c, const struct env_set *env, const unsigned int flags)
+{
+ pre_init_signal_catch();
+ init_instance(c, env, flags);
+ post_init_signal_catch();
+
+ /*
+ * This is done so that signals thrown during
+ * initialization can bring us back to
+ * a management hold.
+ */
+ if (IS_SIG(c))
+ {
+ remap_signal(c);
+ uninit_management_callback();
+ }
+}
+
/*
* Close a tunnel instance.
*/
/*
* Close a tunnel instance.
*/
*/
#define BASE_N_EVENTS 5
*/
#define BASE_N_EVENTS 5
-void context_clear(struct context *c);
-
-void context_clear_1(struct context *c);
-
void context_clear_2(struct context *c);
void context_init_1(struct context *c);
void context_clear_2(struct context *c);
void context_init_1(struct context *c);
void init_instance_handle_signals(struct context *c, const struct env_set *env,
const unsigned int flags);
void init_instance_handle_signals(struct context *c, const struct env_set *env,
const unsigned int flags);
-void init_instance(struct context *c, const struct env_set *env, const unsigned int flags);
-
/**
* Query for private key and auth-user-pass username/passwords.
*/
/**
* Query for private key and auth-user-pass username/passwords.
*/