Mercurial > mplayer.hg
changeset 18466:028e4c7a749e
posix compliance, dont use ancient legacy name
author | rfelker |
---|---|
date | Sat, 13 May 2006 05:51:35 +0000 |
parents | c3c68110f601 |
children | 1f956f8f881e |
files | libmpdemux/network.c libmpdemux/rtp.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/network.c Sat May 13 05:48:16 2006 +0000 +++ b/libmpdemux/network.c Sat May 13 05:51:35 2006 +0000 @@ -199,7 +199,7 @@ return -2; } - memcpy( our_s_addr, (void*)hp->h_addr, hp->h_length ); + memcpy( our_s_addr, (void*)hp->h_addr_list[0], hp->h_length ); } #ifdef HAVE_WINSOCK2 else {
--- a/libmpdemux/rtp.c Sat May 13 05:48:16 2006 +0000 +++ b/libmpdemux/rtp.c Sat May 13 05:51:35 2006 +0000 @@ -78,7 +78,7 @@ mp_msg(MSGT_NETWORK,MSGL_ERR,"Counldn't resolve name: %s\n", url->hostname); goto err_out; } - memcpy( (void*)&server_address.sin_addr.s_addr, (void*)hp->h_addr, hp->h_length ); + memcpy( (void*)&server_address.sin_addr.s_addr, (void*)hp->h_addr_list[0], hp->h_length ); #else server_address.sin_addr.s_addr = htonl(INADDR_ANY); #endif