diff options
author | Kozlov Dmitry <dima@server> | 2011-05-30 11:24:27 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2011-05-30 11:24:27 +0400 |
commit | 276beb78cea777ff8d81d9f5a4cd107c5a3dc2aa (patch) | |
tree | f50c4e781ba13c3ee59382a4466cfafa31ef464a /accel-pppd/ppp/ipcp_opt_dns.c | |
parent | 01afc34e830f2adf94c191a3c4f2761888dae53b (diff) | |
download | accel-ppp-276beb78cea777ff8d81d9f5a4cd107c5a3dc2aa.tar.gz accel-ppp-276beb78cea777ff8d81d9f5a4cd107c5a3dc2aa.zip |
rewrited initialization procedure (fix gcc-4.6 builds)
Diffstat (limited to 'accel-pppd/ppp/ipcp_opt_dns.c')
-rw-r--r-- | accel-pppd/ppp/ipcp_opt_dns.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/ppp/ipcp_opt_dns.c b/accel-pppd/ppp/ipcp_opt_dns.c index f488f3ce..4427b0ec 100644 --- a/accel-pppd/ppp/ipcp_opt_dns.c +++ b/accel-pppd/ppp/ipcp_opt_dns.c @@ -152,7 +152,7 @@ static void load_config(void) conf_dns2 = inet_addr(opt); } -static void __init dns_opt_init() +static void dns_opt_init() { ipcp_option_register(&dns1_opt_hnd); ipcp_option_register(&dns2_opt_hnd); @@ -160,3 +160,5 @@ static void __init dns_opt_init() load_config(); triton_event_register_handler(EV_CONFIG_RELOAD, (triton_event_func)load_config); } + +DEFINE_INIT(4, dns_opt_init); |