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/cli/std_cmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'accel-pppd/cli/std_cmd.c') diff --git a/accel-pppd/cli/std_cmd.c b/accel-pppd/cli/std_cmd.c index 0754b19c..e24b3fa0 100644 --- a/accel-pppd/cli/std_cmd.c +++ b/accel-pppd/cli/std_cmd.c @@ -326,7 +326,7 @@ static void reload_help(char * const *fields, int fields_cnt, void *client) cli_send(client, "reload - reload config file\r\n"); } -static void __init init(void) +static void init(void) { cli_register_simple_cmd2(show_stat_exec, show_stat_help, 2, "show", "stat"); cli_register_simple_cmd2(terminate_exec, terminate_help, 1, "terminate"); @@ -335,3 +335,4 @@ static void __init init(void) cli_register_simple_cmd2(exit_exec, exit_help, 1, "exit"); } +DEFINE_INIT(12, init); -- cgit v1.2.3