From 13c481c9f5a0a40aaf5a387139a853cdb962ad62 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 5 Aug 2009 14:38:55 +0200 Subject: [PATCH] i3-msg: Fix compilation warning (Thanks mxf) --- i3-msg/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3-msg/main.c b/i3-msg/main.c index ebeca7d5..197cceb6 100644 --- a/i3-msg/main.c +++ b/i3-msg/main.c @@ -102,7 +102,7 @@ int main(int argc, char *argv[]) { memset(&addr, 0, sizeof(struct sockaddr_un)); addr.sun_family = AF_LOCAL; strcpy(addr.sun_path, socket_path); - if (connect(sockfd, &addr, sizeof(struct sockaddr_un)) < 0) + if (connect(sockfd, (const struct sockaddr*)&addr, sizeof(struct sockaddr_un)) < 0) err(EXIT_FAILURE, "Could not connect to i3"); ipc_send_message(sockfd, strlen(argv[optind]), 0, (uint8_t*)argv[optind]); -- 2.39.5