From fbe03b3f3040fee291ed21c09ca8d8bf706c5a2b Mon Sep 17 00:00:00 2001 From: Joshua Colp <jcolp@digium.com> Date: Tue, 22 Aug 2006 02:30:38 +0000 Subject: [PATCH] Another compile time warning bites the dust git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40820 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- utils/muted.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/muted.c b/utils/muted.c index 73eadfa3d5..63be3c7033 100644 --- a/utils/muted.c +++ b/utils/muted.c @@ -223,7 +223,7 @@ static int connect_asterisk(void) sin.sin_family = AF_INET; sin.sin_port = htons(port); memcpy(&sin.sin_addr, hp->h_addr, sizeof(sin.sin_addr)); - if (connect(sock, &sin, sizeof(sin))) { + if (connect(sock, (struct sockaddr *)&sin, sizeof(sin))) { fprintf(stderr, "Failed to connect to '%s' port '%d': %s\n", host, port, strerror(errno)); close(sock); return -1; -- GitLab