summaryrefslogtreecommitdiffstats
path: root/attributes.c
diff options
context:
space:
mode:
authornicm <nicm>2017-02-16 10:53:25 +0000
committernicm <nicm>2017-02-16 10:53:25 +0000
commit8b8d0963da522c3a0ac4e99dc9264b6fda2b477a (patch)
tree43fa691802d7922ec30c8f79b719a20cf3aea657 /attributes.c
parentdd25a6cdc21c76888c370a053ca2adb710a89cdf (diff)
Style nits.
Diffstat (limited to 'attributes.c')
-rw-r--r--attributes.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/attributes.c b/attributes.c
index 84e4f9c6..046cdcc5 100644
--- a/attributes.c
+++ b/attributes.c
@@ -32,13 +32,13 @@ attributes_tostring(u_char attr)
return ("none");
len = xsnprintf(buf, sizeof buf, "%s%s%s%s%s%s%s",
- attr & GRID_ATTR_BRIGHT ? "bright," : "",
- attr & GRID_ATTR_DIM ? "dim," : "",
- attr & GRID_ATTR_UNDERSCORE ? "underscore," : "",
- attr & GRID_ATTR_BLINK ? "blink," : "",
- attr & GRID_ATTR_REVERSE ? "reverse," : "",
- attr & GRID_ATTR_HIDDEN ? "hidden," : "",
- attr & GRID_ATTR_ITALICS ? "italics," : "");
+ (attr & GRID_ATTR_BRIGHT) ? "bright," : "",
+ (attr & GRID_ATTR_DIM) ? "dim," : "",
+ (attr & GRID_ATTR_UNDERSCORE) ? "underscore," : "",
+ (attr & GRID_ATTR_BLINK)? "blink," : "",
+ (attr & GRID_ATTR_REVERSE) ? "reverse," : "",
+ (attr & GRID_ATTR_HIDDEN) ? "hidden," : "",
+ (attr & GRID_ATTR_ITALICS) ? "italics," : "");
if (len > 0)
buf[len - 1] = '\0';