diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-16 13:06:30 +0200 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-16 13:06:30 +0200 |
commit | 382b4e425a18f3c64354cc57d98857ec9852705c (patch) | |
tree | 9dcf0d6e00a7a0c7f578807eecc36432d1e7be6c | |
parent | sway/ipc: Free ipc_sockaddr upon termination. (diff) | |
download | sway-382b4e425a18f3c64354cc57d98857ec9852705c.tar.gz sway-382b4e425a18f3c64354cc57d98857ec9852705c.tar.zst sway-382b4e425a18f3c64354cc57d98857ec9852705c.zip |
sway/ipc: Fix whitespace.
-rw-r--r-- | sway/ipc.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -81,17 +81,17 @@ void ipc_terminate(void) { | |||
81 | } | 81 | } |
82 | 82 | ||
83 | struct sockaddr_un *ipc_user_sockaddr(void) { | 83 | struct sockaddr_un *ipc_user_sockaddr(void) { |
84 | struct sockaddr_un *ipc_sockaddr = malloc(sizeof(struct sockaddr_un)); | 84 | struct sockaddr_un *ipc_sockaddr = malloc(sizeof(struct sockaddr_un)); |
85 | assert(ipc_sockaddr != NULL); | 85 | assert(ipc_sockaddr != NULL); |
86 | 86 | ||
87 | ipc_sockaddr->sun_family = AF_UNIX; | 87 | ipc_sockaddr->sun_family = AF_UNIX; |
88 | 88 | ||
89 | int path_size = sizeof(ipc_sockaddr->sun_path); | 89 | int path_size = sizeof(ipc_sockaddr->sun_path); |
90 | 90 | ||
91 | // Without logind: | 91 | // Without logind: |
92 | assert(snprintf(ipc_sockaddr->sun_path, path_size, "/tmp/sway-ipc.%i.sock", getuid()) < path_size); | 92 | assert(snprintf(ipc_sockaddr->sun_path, path_size, "/tmp/sway-ipc.%i.sock", getuid()) < path_size); |
93 | 93 | ||
94 | return ipc_sockaddr; | 94 | return ipc_sockaddr; |
95 | } | 95 | } |
96 | 96 | ||
97 | int ipc_handle_connection(int fd, uint32_t mask, void *data) { | 97 | int ipc_handle_connection(int fd, uint32_t mask, void *data) { |