From 7f2cb5708439cee0f52a693c02131dc4dc08fd02 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 26 Jan 2014 12:07:10 +0100 Subject: explicit braces to avoid ambiguous ‘else’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/adjbacklight.c | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/adjbacklight.c b/src/adjbacklight.c index 53f3013..3baf0a1 100644 --- a/src/adjbacklight.c +++ b/src/adjbacklight.c @@ -497,18 +497,20 @@ int main(int argc, char** argv) free(space); } else if (get) - if (nbrightness) - { - brightness *= 100.f; - brightness /= nbrightness; - printf("%.2f%%\n", brightness); - fflush(stdout); - } - else - { - printf("%s\n", "100.00%"); - fflush(stdout); - } + { + if (nbrightness) + { + brightness *= 100.f; + brightness /= nbrightness; + printf("%.2f%%\n", brightness); + fflush(stdout); + } + else + { + printf("%s\n", "100.00%"); + fflush(stdout); + } + } } -- cgit v1.2.3-70-g09d2