diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-16 13:53:32 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-16 13:53:32 +0000 |
commit | cd390083ad1fea1ddb93df9c5560eba0a9f26a0d (patch) | |
tree | 8594a86a0760b7e393a75e883d00256c29e9ed00 /readline.c | |
parent | 77b9435f13238ad4b656f8543cea5498e8a0e2a1 (diff) | |
download | qemu-cd390083ad1fea1ddb93df9c5560eba0a9f26a0d.tar.gz qemu-cd390083ad1fea1ddb93df9c5560eba0a9f26a0d.tar.bz2 qemu-cd390083ad1fea1ddb93df9c5560eba0a9f26a0d.zip |
Attached patch fixes a series of this warning
when compiling on NetBSD:
warning: array subscript has type 'char'
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5727 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'readline.c')
-rw-r--r-- | readline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/readline.c b/readline.c index 81bc49120a..e1e963a2cd 100644 --- a/readline.c +++ b/readline.c @@ -169,7 +169,7 @@ static void term_backword(void) /* find first word (backwards) */ while (start > 0) { - if (!isspace(term_cmd_buf[start])) { + if (!qemu_isspace(term_cmd_buf[start])) { break; } @@ -178,7 +178,7 @@ static void term_backword(void) /* find first space (backwards) */ while (start > 0) { - if (isspace(term_cmd_buf[start])) { + if (qemu_isspace(term_cmd_buf[start])) { ++start; break; } |