summaryrefslogtreecommitdiff
path: root/xvinfo.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-13 14:39:54 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-13 14:39:54 -0800
commita7db7b1385ece9c10ad1d7c13d9c842b52a39002 (patch)
treeac01a844b897a8e2366858257ade53a059a8df25 /xvinfo.c
parent8afa791dd265d64f425ff7f3c32a16c291e3bb7b (diff)
add explicit braces to clarify which if the else goes with
Suggested by clang: xvinfo.c:125:25: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xvinfo.c')
-rw-r--r--xvinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xvinfo.c b/xvinfo.c
index 605af56..bdc69cd 100644
--- a/xvinfo.c
+++ b/xvinfo.c
@@ -118,12 +118,13 @@ main(int argc, char *argv[])
attributes[k].name,
attributes[k].min_value, attributes[k].max_value);
- if (attributes[k].flags & XvSettable)
+ if (attributes[k].flags & XvSettable) {
if (!shortmode)
fprintf(stdout,
" client settable attribute\n");
else
fprintf(stdout, " settable");
+ }
if (attributes[k].flags & XvGettable) {
Atom the_atom;