From 96fc93d744602153afe1167462af1e1080812abc Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 29 Jan 2014 10:23:58 -0500 Subject: [PATCH] xwayland: Reindent --- src/wayland/meta-xwayland.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c index 02c5b7bc3..ab010f051 100644 --- a/src/wayland/meta-xwayland.c +++ b/src/wayland/meta-xwayland.c @@ -52,7 +52,7 @@ xserver_set_window_id (struct wl_client *client, } static const struct xserver_interface xserver_implementation = { - xserver_set_window_id + xserver_set_window_id }; static void @@ -123,7 +123,7 @@ create_lockfile (int display, int *display_out) /* ignore error and try the next display number */ display++; continue; - } + } close (fd); other = strtol (pid, &end, 0); @@ -135,7 +135,7 @@ create_lockfile (int display, int *display_out) /* ignore error and try the next display number */ display++; continue; - } + } if (kill (other, 0) < 0 && errno == ESRCH) { @@ -148,7 +148,7 @@ create_lockfile (int display, int *display_out) } g_free (filename); continue; - } + } g_free (filename); display++; @@ -240,11 +240,12 @@ bind_to_unix_socket (int display) return -1; } - if (listen (fd, 1) < 0) { + if (listen (fd, 1) < 0) + { unlink (addr.sun_path); close (fd); return -1; - } + } return fd; } @@ -310,8 +311,8 @@ meta_xwayland_start (MetaWaylandCompositor *compositor) lockfile = create_lockfile (display, &display); if (!lockfile) { - g_warning ("Failed to create an X lock file"); - return FALSE; + g_warning ("Failed to create an X lock file"); + return FALSE; } compositor->xwayland_abstract_fd = bind_to_abstract_socket (display);