summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar Antti K2014-07-26 14:27:58 +0200
committerGravatar Antti K2014-07-26 14:27:58 +0200
commit4786ebba9583eda0bda7695387f71909d08c8d03 (patch)
tree7bc902740454b29f609af2d905606a948e31439b
parent32dba0358c30084f62c61c04f11f4432d2ae34f9 (diff)
downloadxkbcat-4786ebba9583eda0bda7695387f71909d08c8d03.tar.gz
xkbcat-4786ebba9583eda0bda7695387f71909d08c8d03.zip
Neater format
No need for brackets.
-rw-r--r--xspy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xspy.c b/xspy.c
index 7cb9425..baaddd1 100644
--- a/xspy.c
+++ b/xspy.c
@@ -130,9 +130,8 @@ char *KeyCodeToStr(int code, int down) {
strncpy(buf, str, KEYSYM_STRLEN); buf[KEYSYM_STRLEN]=0;
/* still a string, so put it in form (+str) or (-str) */
- if (down) strcpy(buf, "(+");
- else strcpy(buf, "(-");
+ if (down) strcpy(buf, "+ ");
+ else strcpy(buf, "- ");
strcat(buf, str);
- strcat(buf, ")");
return buf;
}