From: Michael Stapelberg Date: Wed, 5 Aug 2009 12:38:55 +0000 (+0200) Subject: i3-msg: Fix compilation warning (Thanks mxf) X-Git-Tag: 3.c~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=13c481c9f5a0a40aaf5a387139a853cdb962ad62;p=i3%2Fi3 i3-msg: Fix compilation warning (Thanks mxf) --- 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]);