mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-10 13:29:48 -05:00
Indentation nit-picking
This commit is contained in:
parent
2643707391
commit
0611e3efc2
2 changed files with 5 additions and 5 deletions
|
|
@ -513,7 +513,7 @@ wayland_compositor_create(struct wl_display *display, int width, int height)
|
||||||
struct wayland_compositor *c;
|
struct wayland_compositor *c;
|
||||||
struct wl_event_loop *loop;
|
struct wl_event_loop *loop;
|
||||||
int fd;
|
int fd;
|
||||||
char *socket_name;
|
char *socket_name, *env;
|
||||||
int socket_name_size;
|
int socket_name_size;
|
||||||
|
|
||||||
c = malloc(sizeof *c);
|
c = malloc(sizeof *c);
|
||||||
|
|
@ -522,8 +522,8 @@ wayland_compositor_create(struct wl_display *display, int width, int height)
|
||||||
|
|
||||||
memset(c, 0, sizeof *c);
|
memset(c, 0, sizeof *c);
|
||||||
|
|
||||||
socket_name_size = 1 + asprintf(&socket_name, "%c%s", '\0',
|
env = getenv("WAYLAND_DISPLAY");
|
||||||
getenv("WAYLAND_DISPLAY"));
|
socket_name_size = asprintf(&socket_name, "%c%s", '\0', env) + 1;
|
||||||
|
|
||||||
c->parent.display = wl_display_connect(socket_name, socket_name_size);
|
c->parent.display = wl_display_connect(socket_name, socket_name_size);
|
||||||
free(socket_name);
|
free(socket_name);
|
||||||
|
|
|
||||||
|
|
@ -1435,8 +1435,8 @@ int main(int argc, char *argv[])
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
socket_name_size = 1 + asprintf(&socket_name, "%c%s", '\0',
|
socket_name_size =
|
||||||
option_socket_name);
|
asprintf(&socket_name, "%c%s", '\0', option_socket_name) + 1;
|
||||||
|
|
||||||
if (wl_display_add_socket(display, socket_name, socket_name_size)) {
|
if (wl_display_add_socket(display, socket_name, socket_name_size)) {
|
||||||
fprintf(stderr, "failed to add socket: %m\n");
|
fprintf(stderr, "failed to add socket: %m\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue