From 2824899d280f2b169b3e745b222f9a981c1ce5f7 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 16 Aug 2013 18:27:28 -0700 Subject: 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 Backported-to-NX-by: Ulrich Sibiller --- nx-X11/lib/X11/XKBMAlloc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'nx-X11/lib/X11/XKBMAlloc.c') 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); -- cgit v1.2.3