summaryrefslogtreecommitdiff
path: root/xkbscan.c
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2010-07-12 10:28:32 +0100
committerDaniel Stone <daniel@fooishbar.org>2010-07-12 10:28:32 +0100
commit61b3d4b024d8146cb0e7659aa958045ceb72c482 (patch)
tree6beba2d42d920a7fab35ddaad0703c351c01166d /xkbscan.c
parenta281386fa887e6bf4110840779aed46dd0ac89b6 (diff)
Fix signedness issue with getc() return value
getc() and ungetc() return and take, respectively, an int rather than a char to allow for error values as well. Oops. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'xkbscan.c')
-rw-r--r--xkbscan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xkbscan.c b/xkbscan.c
index 1e7902d..03193e2 100644
--- a/xkbscan.c
+++ b/xkbscan.c
@@ -269,7 +269,7 @@ tokText(int tok)
}
#endif
-static char
+static int
scanchar(void)
{
if (readBufPos >= readBufLen) {
@@ -285,7 +285,7 @@ scanchar(void)
}
static void
-unscanchar(char c)
+unscanchar(int c)
{
if (readBuf[--readBufPos] != c) {
fprintf(stderr, "UNGETCHAR FAILED! Put back %c, was expecting %c at "