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/auth/auth_mschap_v1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'accel-pppd/auth/auth_mschap_v1.c') diff --git a/accel-pppd/auth/auth_mschap_v1.c b/accel-pppd/auth/auth_mschap_v1.c index 237e3aa..85e3037 100644 --- a/accel-pppd/auth/auth_mschap_v1.c +++ b/accel-pppd/auth/auth_mschap_v1.c @@ -494,7 +494,7 @@ static void chap_recv(struct ppp_handler_t *h) log_ppp_warn("mschap-v1: unknown code received %x\n", hdr->code); } -static void __init auth_mschap_v1_init() +static void auth_mschap_v1_init() { char *opt; @@ -523,3 +523,4 @@ static void __init auth_mschap_v1_init() log_emerg("mschap-v1: failed to register handler\n"); } +DEFINE_INIT(4, auth_mschap_v1_init); -- cgit v1.2.3