diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-16 18:27:28 -0700 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:28 +0200 |
commit | 2824899d280f2b169b3e745b222f9a981c1ce5f7 (patch) | |
tree | b36bb27f59fc802561e78aa344755808b71a0279 /nx-X11/lib/X11/XKBMAlloc.c | |
parent | 3c5880e7254dcd04ea8e54d53ec99880e2dfdc27 (diff) | |
download | nx-libs-2824899d280f2b169b3e745b222f9a981c1ce5f7.tar.gz nx-libs-2824899d280f2b169b3e745b222f9a981c1ce5f7.tar.bz2 nx-libs-2824899d280f2b169b3e745b222f9a981c1ce5f7.zip |
Rearrange some variable declarations & initializations in XKB
Little things noticed during XKB restyling that seemed to make the
code easier to read.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/XKBMAlloc.c')
-rw-r--r-- | nx-X11/lib/X11/XKBMAlloc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nx-X11/lib/X11/XKBMAlloc.c b/nx-X11/lib/X11/XKBMAlloc.c index 8586ae966..c7c138e4d 100644 --- a/nx-X11/lib/X11/XKBMAlloc.c +++ b/nx-X11/lib/X11/XKBMAlloc.c @@ -297,9 +297,7 @@ XkbAddKeyType(XkbDescPtr xkb, if ((map) && (map->types)) { for (i = 0; i < map->num_types; i++) { if (map->types[i].name == name) { - Status status; - - status = + Status status = XkbResizeKeyType(xkb, i, map_count, want_preserve, num_lvls); return (status == Success ? &map->types[i] : NULL); |