summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-10-16 13:06:30 +0200
committerLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-10-16 13:06:30 +0200
commit382b4e425a18f3c64354cc57d98857ec9852705c (patch)
tree9dcf0d6e00a7a0c7f578807eecc36432d1e7be6c
parentsway/ipc: Free ipc_sockaddr upon termination. (diff)
downloadsway-382b4e425a18f3c64354cc57d98857ec9852705c.tar.gz
sway-382b4e425a18f3c64354cc57d98857ec9852705c.tar.zst
sway-382b4e425a18f3c64354cc57d98857ec9852705c.zip
sway/ipc: Fix whitespace.
-rw-r--r--sway/ipc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sway/ipc.c b/sway/ipc.c
index 325d78ab..5599cdf0 100644
--- a/sway/ipc.c
+++ b/sway/ipc.c
@@ -81,17 +81,17 @@ void ipc_terminate(void) {
81} 81}
82 82
83struct sockaddr_un *ipc_user_sockaddr(void) { 83struct 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
97int ipc_handle_connection(int fd, uint32_t mask, void *data) { 97int ipc_handle_connection(int fd, uint32_t mask, void *data) {