summaryrefslogtreecommitdiff
path: root/keymaps.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-07-31 21:16:51 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-07-31 21:16:51 +0000
commit5bc66fd30d90a2eabc04a9b627bde9382edd99d8 (patch)
tree1d133bdfc69d11fe81e769825adf3f680ee2f91e /keymaps.c
parentc374b2b20af70b7b88a6c463606ddf6c1a26298a (diff)
downloadqemu-5bc66fd30d90a2eabc04a9b627bde9382edd99d8.tar.gz
qemu-5bc66fd30d90a2eabc04a9b627bde9382edd99d8.tar.bz2
qemu-5bc66fd30d90a2eabc04a9b627bde9382edd99d8.zip
Fix Sparse warnings: "Using plain integer as NULL pointer"
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'keymaps.c')
-rw-r--r--keymaps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keymaps.c b/keymaps.c
index 23db4a0bdc..668556298a 100644
--- a/keymaps.c
+++ b/keymaps.c
@@ -75,7 +75,7 @@ static kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table,
if (!(filename && (f = fopen(filename, "r")))) {
fprintf(stderr,
"Could not read keymap file: '%s'\n", language);
- return 0;
+ return NULL;
}
qemu_free(filename);
for(;;) {
@@ -144,7 +144,7 @@ static kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table,
void *init_keyboard_layout(const name2keysym_t *table, const char *language)
{
- return parse_keyboard_layout(table, language, 0);
+ return parse_keyboard_layout(table, language, NULL);
}