From 276beb78cea777ff8d81d9f5a4cd107c5a3dc2aa Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Mon, 30 May 2011 11:24:27 +0400 Subject: rewrited initialization procedure (fix gcc-4.6 builds) --- accel-pppd/extra/chap-secrets.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'accel-pppd/extra/chap-secrets.c') diff --git a/accel-pppd/extra/chap-secrets.c b/accel-pppd/extra/chap-secrets.c index a42ab236..ee83bce5 100644 --- a/accel-pppd/extra/chap-secrets.c +++ b/accel-pppd/extra/chap-secrets.c @@ -268,7 +268,7 @@ static void load_config(void) conf_gw_ip_address = inet_addr(opt); } -static void __init init(void) +static void init(void) { load_config(); @@ -280,3 +280,4 @@ static void __init init(void) triton_event_register_handler(EV_CONFIG_RELOAD, (triton_event_func)load_config); } +DEFINE_INIT(100, init); -- cgit v1.2.3