aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorS. Christoffer Eliesen <christoffer@eliesen.no>2015-10-16 13:06:30 +0200
committerS. Christoffer Eliesen <christoffer@eliesen.no>2015-10-16 13:06:30 +0200
commit382b4e425a18f3c64354cc57d98857ec9852705c (patch)
tree9dcf0d6e00a7a0c7f578807eecc36432d1e7be6c /sway
parent26beb66eb552569d4eb979916bee750184c4ec24 (diff)
downloadsway-382b4e425a18f3c64354cc57d98857ec9852705c.tar.xz
sway/ipc: Fix whitespace.
Diffstat (limited to 'sway')
-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) {
}
struct sockaddr_un *ipc_user_sockaddr(void) {
- struct sockaddr_un *ipc_sockaddr = malloc(sizeof(struct sockaddr_un));
- assert(ipc_sockaddr != NULL);
+ struct sockaddr_un *ipc_sockaddr = malloc(sizeof(struct sockaddr_un));
+ assert(ipc_sockaddr != NULL);
- ipc_sockaddr->sun_family = AF_UNIX;
+ ipc_sockaddr->sun_family = AF_UNIX;
- int path_size = sizeof(ipc_sockaddr->sun_path);
+ int path_size = sizeof(ipc_sockaddr->sun_path);
- // Without logind:
- assert(snprintf(ipc_sockaddr->sun_path, path_size, "/tmp/sway-ipc.%i.sock", getuid()) < path_size);
+ // Without logind:
+ assert(snprintf(ipc_sockaddr->sun_path, path_size, "/tmp/sway-ipc.%i.sock", getuid()) < path_size);
- return ipc_sockaddr;
+ return ipc_sockaddr;
}
int ipc_handle_connection(int fd, uint32_t mask, void *data) {