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
Bryce Harrington 2016-06-15 17:36:16 -07:00 committed by Daniel Stone
parent 07be44abdb
commit 832e32dc6c
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ Before we can do anything interesting, we need a library context:
~~~{.c}
#include <xkbcommon/xkbcommon.h>
struct xkb_context ctx;
struct xkb_context *ctx;
ctx = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
if (!ctx) <error>