[Olsr-dev] [PATCH v1 15/23] interfaces: clean up invocation of olsr_exit

Ferry Huberts (spam-protected)
Fri Nov 6 16:29:07 CET 2015


From: Ferry Huberts <(spam-protected)>

olsr_exit already logs to the syslog and also prints
the message

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 src/interfaces.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/interfaces.c b/src/interfaces.c
index 8af14c7..75041ea 100644
--- a/src/interfaces.c
+++ b/src/interfaces.c
@@ -423,8 +423,7 @@ olsr_remove_interface(struct olsr_if * iface)
   free(ifp);
 
   if ((ifnet == NULL) && (!olsr_cnf->allow_no_interfaces)) {
-    olsr_syslog(OLSR_LOG_INFO, "No more active interfaces - exiting.\n");
-    olsr_exit("No more active interfaces - exiting.\n", EXIT_FAILURE);
+    olsr_exit("No more active interfaces", EXIT_FAILURE);
   }
 }
 
-- 
2.5.0




More information about the Olsr-dev mailing list