summaryrefslogtreecommitdiff
path: root/accel-pppd/logs
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2011-05-30 11:24:27 +0400
committerKozlov Dmitry <dima@server>2011-05-30 11:24:27 +0400
commit276beb78cea777ff8d81d9f5a4cd107c5a3dc2aa (patch)
treef50c4e781ba13c3ee59382a4466cfafa31ef464a /accel-pppd/logs
parent01afc34e830f2adf94c191a3c4f2761888dae53b (diff)
downloadaccel-ppp-276beb78cea777ff8d81d9f5a4cd107c5a3dc2aa.tar.gz
accel-ppp-276beb78cea777ff8d81d9f5a4cd107c5a3dc2aa.zip
rewrited initialization procedure (fix gcc-4.6 builds)
Diffstat (limited to 'accel-pppd/logs')
-rw-r--r--accel-pppd/logs/log_file.c4
-rw-r--r--accel-pppd/logs/log_pgsql.c4
-rw-r--r--accel-pppd/logs/log_tcp.c3
3 files changed, 8 insertions, 3 deletions
diff --git a/accel-pppd/logs/log_file.c b/accel-pppd/logs/log_file.c
index c6aed8e5..f1a50185 100644
--- a/accel-pppd/logs/log_file.c
+++ b/accel-pppd/logs/log_file.c
@@ -678,7 +678,7 @@ static struct log_target_t fail_log_target =
};
-static void __init init(void)
+static void init(void)
{
char *opt;
@@ -765,3 +765,5 @@ static void __init init(void)
triton_event_register_handler(EV_CTRL_STARTED, (triton_event_func)ev_ctrl_started);
triton_event_register_handler(EV_CTRL_FINISHED, (triton_event_func)ev_ctrl_finished);
}
+
+DEFINE_INIT(1, init);
diff --git a/accel-pppd/logs/log_pgsql.c b/accel-pppd/logs/log_pgsql.c
index af67e0b0..742ee625 100644
--- a/accel-pppd/logs/log_pgsql.c
+++ b/accel-pppd/logs/log_pgsql.c
@@ -280,7 +280,7 @@ static struct log_target_t target = {
.log = general_log,
};
-static void __init init(void)
+static void init(void)
{
char *opt;
@@ -319,3 +319,5 @@ static void __init init(void)
log_register_target(&target);
}
+
+DEFINE_INIT(1, init);
diff --git a/accel-pppd/logs/log_tcp.c b/accel-pppd/logs/log_tcp.c
index 306c450f..ceaeb1c0 100644
--- a/accel-pppd/logs/log_tcp.c
+++ b/accel-pppd/logs/log_tcp.c
@@ -301,7 +301,7 @@ static struct triton_context_t tcp_ctx ={
.before_switch = log_switch,
};
-static void __init init(void)
+static void init(void)
{
struct conf_sect_t *s = conf_get_section("log");
struct conf_option_t *opt;
@@ -321,3 +321,4 @@ static void __init init(void)
triton_context_wakeup(&tcp_ctx);
}
+DEFINE_INIT(1, init);