mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
fix compile warning. (Not really tested...it's a test app)
This commit is contained in:
parent
0102cde2c3
commit
6d768972db
1 changed files with 2 additions and 2 deletions
|
@ -252,8 +252,8 @@ connect_socket( void )
|
|||
|
||||
struct hostent* hostip;
|
||||
hostip = gethostbyname( g_host );
|
||||
memcpy( &(to_sock.sin_addr.s_addr), hostip->h_addr_list[0],
|
||||
sizeof(hostip->h_addr_list[0] ) );
|
||||
memcpy( &(to_sock.sin_addr.s_addr), &hostip->h_addr_list[0],
|
||||
sizeof(hostip->h_addr_list[0]) );
|
||||
|
||||
if ( 0 != connect( sockfd, (const struct sockaddr*)&to_sock,
|
||||
sizeof(to_sock) ) ) {
|
||||
|
|
Loading…
Reference in a new issue