aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-01-20 17:03:54 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-01-20 17:03:54 +0000
commit4f5d529760db3ff305c54345417d120842ebe9ea (patch)
tree832aa511dd119120f9f2bdfed8820ec5f0fe7d3d
parent541a4328dbf4104d1456341b4a179fbd2390ca80 (diff)
downloadtermo-4f5d529760db3ff305c54345417d120842ebe9ea.tar.gz
termo-4f5d529760db3ff305c54345417d120842ebe9ea.tar.xz
termo-4f5d529760db3ff305c54345417d120842ebe9ea.zip
fprintf() %c wants char, not unsigned char
-rw-r--r--driver-csi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/driver-csi.c b/driver-csi.c
index 05019cc..997885f 100644
--- a/driver-csi.c
+++ b/driver-csi.c
@@ -268,16 +268,16 @@ static TermKeyResult peekkey_csi(TermKey *tk, TermKeyCsi *csi, size_t introlen,
#ifdef DEBUG
switch(args) {
case 1:
- fprintf(stderr, "CSI: Unknown arg1=%ld cmd=%c\n", arg[0], cmd);
+ fprintf(stderr, "CSI: Unknown arg1=%ld cmd=%c\n", arg[0], (char)cmd);
break;
case 2:
- fprintf(stderr, "CSI: Unknown arg1=%ld arg2=%ld cmd=%c\n", arg[0], arg[1], cmd);
+ fprintf(stderr, "CSI: Unknown arg1=%ld arg2=%ld cmd=%c\n", arg[0], arg[1], (char)cmd);
break;
case 3:
- fprintf(stderr, "CSI: Unknown arg1=%ld arg2=%ld arg3=%ld cmd=%c\n", arg[0], arg[1], arg[2], cmd);
+ fprintf(stderr, "CSI: Unknown arg1=%ld arg2=%ld arg3=%ld cmd=%c\n", arg[0], arg[1], arg[2], (char)cmd);
break;
default:
- fprintf(stderr, "CSI: Unknown arg1=%ld arg2=%ld arg3=%ld ... args=%d cmd=%c\n", arg[0], arg[1], arg[2], args, cmd);
+ fprintf(stderr, "CSI: Unknown arg1=%ld arg2=%ld arg3=%ld ... args=%d cmd=%c\n", arg[0], arg[1], arg[2], args, (char)cmd);
break;
}
#endif