INN commit: trunk (innd/cc.c tests/innd/chan-t.c)
INN Commit
rra at isc.org
Sun Apr 3 13:22:47 UTC 2016
Date: Sunday, April 3, 2016 @ 06:22:47
Author: iulius
Revision: 9995
Fix the use of NOTREACHED
Modified:
trunk/innd/cc.c
trunk/tests/innd/chan-t.c
---------------------+
innd/cc.c | 3 ++-
tests/innd/chan-t.c | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
Modified: innd/cc.c
===================================================================
--- innd/cc.c 2016-04-03 13:22:10 UTC (rev 9994)
+++ innd/cc.c 2016-04-03 13:22:47 UTC (rev 9995)
@@ -209,9 +209,10 @@
{
syslog(L_FATAL, "%s abort %s", LogName, av[0]);
abort();
+ /* NOTREACHED */
syslog(L_FATAL, "%s cant abort %m", LogName);
CleanupAndExit(1, av[0]);
- /* NOTREACHED */
+ return "1 Abort failed";
}
Modified: tests/innd/chan-t.c
===================================================================
--- tests/innd/chan-t.c 2016-04-03 13:22:10 UTC (rev 9994)
+++ tests/innd/chan-t.c 2016-04-03 13:22:47 UTC (rev 9995)
@@ -70,6 +70,7 @@
WCHANadd(cp);
CHANreadloop();
die("fell through main");
+ /* NOTREACHED */
return 1;
}
More information about the inn-committers
mailing list