diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-01-26 12:07:10 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-01-26 12:07:10 +0100 |
commit | 7f2cb5708439cee0f52a693c02131dc4dc08fd02 (patch) | |
tree | bc6530cb73910d37e0a3bcbfda831b304c6c4794 /src | |
parent | m (diff) | |
download | adjbacklight-7f2cb5708439cee0f52a693c02131dc4dc08fd02.tar.gz adjbacklight-7f2cb5708439cee0f52a693c02131dc4dc08fd02.tar.bz2 adjbacklight-7f2cb5708439cee0f52a693c02131dc4dc08fd02.tar.xz |
explicit braces to avoid ambiguous ‘else’7.1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/adjbacklight.c | 26 |
1 files changed, 14 insertions, 12 deletions
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); + } + } } |