fix C++ compilation issues

Signed-off-by: Robert Andersson <robert.m.andersson@se.atlascopco.com>
This commit is contained in:
Robert Andersson committed 2018-10-22 12:51:58 +02:00
1 parent 053304012f
commit d371b85c47
6 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -352,8 +352,8 @@ static void api_cb(uev_t *w, void *arg, int events)
if (wdog) {
logit(LOG_NOTICE, "Stopping and removing %s (PID:%d)", wdog->cmd, wdog->pid);
stop(wdog);
if (wdog->protected) {
wdog->protected = 0;
if (wdog->protect) {
wdog->protect = 0;
wdog->runlevels = 0;
}
}