mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-16 21:00:00 +01:00
remove unused code
This commit is contained in:
@@ -128,28 +128,6 @@ mcast_receiver *mcast_new_receiver( const char *group_name, int port )
|
|||||||
|
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
int mcast_receiver_set_peer( mcast_receiver *v, const char *hostname )
|
|
||||||
{
|
|
||||||
struct hostent *host;
|
|
||||||
host = gethostbyname( hostname );
|
|
||||||
if(host)
|
|
||||||
{
|
|
||||||
v->addr.sin_family = host->h_addrtype;
|
|
||||||
if( host->h_length > (int) sizeof(v->addr.sin_addr))
|
|
||||||
host->h_length = sizeof( v->addr.sin_addr );
|
|
||||||
memcpy( &(v->addr.sin_addr), host->h_addr, host->h_length );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
v->addr.sin_family = AF_INET;
|
|
||||||
if( !inet_aton( hostname, &(v->addr.sin_addr) ) )
|
|
||||||
{
|
|
||||||
veejay_msg(0, "Invalid host '%s'", hostname );
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
int mcast_poll( mcast_receiver *v )
|
int mcast_poll( mcast_receiver *v )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user