doc: Fix ctx type in example
xkb_context_new() returns a xkb_context pointer, so change the variable definition to be consistent. Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>master
parent
07be44abdb
commit
832e32dc6c
|
@ -32,7 +32,7 @@ Before we can do anything interesting, we need a library context:
|
||||||
~~~{.c}
|
~~~{.c}
|
||||||
#include <xkbcommon/xkbcommon.h>
|
#include <xkbcommon/xkbcommon.h>
|
||||||
|
|
||||||
struct xkb_context ctx;
|
struct xkb_context *ctx;
|
||||||
|
|
||||||
ctx = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
|
ctx = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
|
||||||
if (!ctx) <error>
|
if (!ctx) <error>
|
||||||
|
|
Loading…
Reference in New Issue