i3-msg: Fix compilation warning (Thanks mxf)

This commit is contained in:
Michael Stapelberg 2009-08-05 14:38:55 +02:00
parent 3114d6821d
commit 13c481c9f5
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ int main(int argc, char *argv[]) {
memset(&addr, 0, sizeof(struct sockaddr_un)); memset(&addr, 0, sizeof(struct sockaddr_un));
addr.sun_family = AF_LOCAL; addr.sun_family = AF_LOCAL;
strcpy(addr.sun_path, socket_path); 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"); err(EXIT_FAILURE, "Could not connect to i3");
ipc_send_message(sockfd, strlen(argv[optind]), 0, (uint8_t*)argv[optind]); ipc_send_message(sockfd, strlen(argv[optind]), 0, (uint8_t*)argv[optind]);