Module: xenomai-jki Branch: for-upstream Commit: d18724f78bf1ef24d25b58d741532f549fdbd94a URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=d18724f78bf1ef24d25b58d741532f549fdbd94a
Author: Jan Kiszka <jan.kis...@siemens.com> Date: Wed Jul 20 14:46:53 2011 +0200 rt_print: Remove unneeded constructor/destructor indirection Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> --- src/skins/common/rt_print.c | 14 ++------------ 1 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/skins/common/rt_print.c b/src/skins/common/rt_print.c index 356347c..fda197f 100644 --- a/src/skins/common/rt_print.c +++ b/src/skins/common/rt_print.c @@ -586,7 +586,7 @@ static void forked_child_init(void) spawn_printer_thread(); } -static void __rt_print_init(void) +static __attribute__ ((constructor)) void __rt_print_init(void) { const char *value_str; unsigned long long period; @@ -686,7 +686,7 @@ static void __rt_print_init(void) pthread_atfork(NULL, NULL, forked_child_init); } -static void __rt_print_exit(void) +static __attribute__ ((destructor)) void __rt_print_exit(void) { if (buffers) { /* Flush the buffers. Do not call print_buffers here @@ -695,13 +695,3 @@ static void __rt_print_exit(void) nanosleep(&print_period, NULL); } } - -static __attribute__ ((constructor)) void __init_rtdk(void) -{ - __rt_print_init(); -} - -static __attribute__ ((destructor)) void __exit_rtdk(void) -{ - __rt_print_exit(); -} _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git