xkbcomp: fix wrong return type
authorRan Benita <ran@unusedvar.com>
Fri, 27 Dec 2019 12:52:49 +0000 (14:52 +0200)
committerRan Benita <ran@unusedvar.com>
Fri, 27 Dec 2019 13:04:40 +0000 (15:04 +0200)
Detected by MSVC:

xkbcomp\xkbcomp.c(111): warning C4047: 'return': 'bool' differs in levels of indirection from 'void *'

Signed-off-by: Ran Benita <ran@unusedvar.com>
src/xkbcomp/xkbcomp.c

index 5655041..48547c9 100644 (file)
@@ -108,7 +108,7 @@ text_v1_keymap_new_from_string(struct xkb_keymap *keymap,
     xkb_file = XkbParseString(keymap->ctx, string, len, "(input string)", NULL);
     if (!xkb_file) {
         log_err(keymap->ctx, "Failed to parse input xkb string\n");
-        return NULL;
+        return false;
     }
 
     ok = compile_keymap_file(keymap, xkb_file);