aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-12-30 02:48:16 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-12-30 02:48:16 +0100
commit91a9c994c63828fcbd1efdb24a78f6d9db5b323b (patch)
tree13a1e81397c303cfe5fb4e3ac611a24684e16d6f
parent7711ef73f32c1eaaa20b4fd5ba1a7b3d9bdcd25d (diff)
misc: Attempt to fix compiler warningslaforge/nuttx
'sighup_hdlr' defined but not used [-Wunused-function]
-rw-r--r--src/application.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/application.c b/src/application.c
index 79cc68a1..1eee4877 100644
--- a/src/application.c
+++ b/src/application.c
@@ -72,10 +72,12 @@
struct log_target *osmo_stderr_target;
+#ifdef SIGHUP
static void sighup_hdlr(int signal)
{
log_targets_reopen();
}
+#endif
/*! \brief Ignore \ref SIGPIPE, \ref SIGALRM, \ref SIGHUP and \ref SIGIO */
void osmo_init_ignore_signals(void)