[asterisk-commits] file: trunk r40820 - /trunk/utils/muted.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Aug 21 19:30:39 MST 2006


Author: file
Date: Mon Aug 21 21:30:38 2006
New Revision: 40820

URL: http://svn.digium.com/view/asterisk?rev=40820&view=rev
Log:
Another compile time warning bites the dust

Modified:
    trunk/utils/muted.c

Modified: trunk/utils/muted.c
URL: http://svn.digium.com/view/asterisk/trunk/utils/muted.c?rev=40820&r1=40819&r2=40820&view=diff
==============================================================================
--- trunk/utils/muted.c (original)
+++ trunk/utils/muted.c Mon Aug 21 21:30:38 2006
@@ -223,7 +223,7 @@
 	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;



More information about the asterisk-commits mailing list