Add missing 'retrun's for functions declared return value. This change fixes SIGILLs on executable built with clang 3.4.

Tested against FreeBSD 10.3.
This commit is contained in:
Alexey Zelkin 2016-06-15 16:10:32 +00:00 committed by Felipe Zimmerle
parent 1e6b40ebea
commit 57ad70bb2b
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
2 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,8 @@ bool CtlAuditLogParts::init(std::string *error) {
} else { } else {
mPartsAction = 1; mPartsAction = 1;
} }
return true;
} }
bool CtlAuditLogParts::evaluate(Rule *rule, Transaction *transaction) { bool CtlAuditLogParts::evaluate(Rule *rule, Transaction *transaction) {

View File

@ -46,6 +46,7 @@ int Driver::addSecMarker(std::string marker) {
rule->phase = i; rule->phase = i;
rules[i].push_back(rule); rules[i].push_back(rule);
} }
return 0;
} }