mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-29 15:36:13 +00:00 
			
		
		
		
	Another compile time warning bites the dust
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user