interfaces: clean up invocation of olsr_exit
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 5 Nov 2015 23:13:51 +0000 (00:13 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 6 Nov 2015 15:26:23 +0000 (16:26 +0100)
olsr_exit already logs to the syslog and also prints
the message

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/interfaces.c

index 8af14c7..75041ea 100644 (file)
@@ -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);
   }
 }