From 660f11be541813be5f09fbaf44d8e7c6d5a5bbfe Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Fri, 31 Jul 2009 21:16:51 +0000 Subject: Fix Sparse warnings: "Using plain integer as NULL pointer" Signed-off-by: Blue Swirl --- keymaps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'keymaps.c') diff --git a/keymaps.c b/keymaps.c index 23db4a0..6685562 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); } -- cgit v1.1