Skip to content
Snippets Groups Projects
Commit fbe03b3f authored by Joshua Colp's avatar Joshua Colp
Browse files

Another compile time warning bites the dust

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 7734efb9
No related merge requests found
...@@ -223,7 +223,7 @@ static int connect_asterisk(void) ...@@ -223,7 +223,7 @@ static int connect_asterisk(void)
sin.sin_family = AF_INET; sin.sin_family = AF_INET;
sin.sin_port = htons(port); sin.sin_port = htons(port);
memcpy(&sin.sin_addr, hp->h_addr, sizeof(sin.sin_addr)); 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)); fprintf(stderr, "Failed to connect to '%s' port '%d': %s\n", host, port, strerror(errno));
close(sock); close(sock);
return -1; return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment