diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-02-16 12:01:21 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-02-16 12:01:21 +0000 |
commit | f734d81074c6bd587b36c7d49dc359821412c29c (patch) | |
tree | 1e7ee13c6355697f62c20ec15edbc9c7ded2726e /attributes.c | |
parent | c9f2dc5ee5ffc2d71f492b23ff1ee80619c12258 (diff) | |
parent | 8b8d0963da522c3a0ac4e99dc9264b6fda2b477a (diff) | |
download | rtmux-f734d81074c6bd587b36c7d49dc359821412c29c.tar.gz rtmux-f734d81074c6bd587b36c7d49dc359821412c29c.tar.bz2 rtmux-f734d81074c6bd587b36c7d49dc359821412c29c.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'attributes.c')
-rw-r--r-- | attributes.c | 14 |
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'; |