From fda265268df11b37158382d125a360800be8ba55 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Tue, 17 Sep 2013 10:54:09 +0100 Subject: [PATCH] input: Fix trailing whitspaces and indent. Just some cosmetics to conform to the wayland coding style. Signed-off-by: Stefan Schmidt --- src/input.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/input.c b/src/input.c index 9c30460..fb5bfee 100644 --- a/src/input.c +++ b/src/input.c @@ -238,7 +238,7 @@ find_resource_for_surface(struct wl_list *list, struct weston_surface *surface) if (!surface->resource) return NULL; - + return wl_resource_find_for_client(list, wl_resource_get_client(surface->resource)); } @@ -344,7 +344,7 @@ weston_keyboard_create(void) keyboard = zalloc(sizeof *keyboard); if (keyboard == NULL) - return NULL; + return NULL; wl_list_init(&keyboard->resource_list); wl_array_init(&keyboard->keys); @@ -1350,7 +1350,7 @@ weston_compositor_xkb_init(struct weston_compositor *ec, return 0; } -static void +static void weston_xkb_info_destroy(struct weston_xkb_info *xkb_info) { if (--xkb_info->ref_count > 0) @@ -1381,7 +1381,7 @@ weston_compositor_xkb_destroy(struct weston_compositor *ec) free((char *) ec->xkb_names.layout); free((char *) ec->xkb_names.variant); free((char *) ec->xkb_names.options); - + if (ec->xkb_info) weston_xkb_info_destroy(ec->xkb_info); xkb_context_unref(ec->xkb_context); @@ -1479,7 +1479,7 @@ weston_compositor_build_global_keymap(struct weston_compositor *ec) } ec->xkb_info = weston_xkb_info_create(keymap); - if (ec->xkb_info == NULL) + if (ec->xkb_info == NULL) return -1; return 0; -- 2.7.4