summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Štetiar2020-01-05 10:48:35 +0000
committerPetr Štetiar2020-01-05 10:49:29 +0000
commitd2e8bf6ef7cf0e037475a485cdf0321756dcb928 (patch)
treee0314297f0f400a10ece00eed34c76b351fba7a8
parent9814807bd71cba074a23707c32d163b560b551cf (diff)
downloadprocd-d2e8bf6ef7cf0e037475a485cdf0321756dcb928.tar.gz
system: watchdog_set: fix misleading indentation
Fixes error reported by clang version 10.0.0-+20200102091410: system.c:367:4: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] watchdog_timeout(timeout); ^ system.c:365:3: note: previous statement is here if (timeout <= frequency) Signed-off-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r--system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system.c b/system.c
index 0736ec9..0fb98f1 100644
--- a/system.c
+++ b/system.c
@@ -364,7 +364,7 @@ static int watchdog_set(struct ubus_context *ctx, struct ubus_object *obj,
if (timeout <= frequency)
timeout = frequency * 2;
- watchdog_timeout(timeout);
+ watchdog_timeout(timeout);
}
if (tb[WDT_MAGICCLOSE])