Another compile time warning bites the dust
authorJoshua Colp <jcolp@digium.com>
Tue, 22 Aug 2006 02:30:38 +0000 (02:30 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 22 Aug 2006 02:30:38 +0000 (02:30 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40820 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils/muted.c

index 73eadfa..63be3c7 100644 (file)
@@ -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;