Skip to content

Commit

Permalink
whee
Browse files Browse the repository at this point in the history
  • Loading branch information
gafferongames committed Sep 17, 2024
1 parent 99ed31b commit 7290291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ void netcode_socket_set_qos( struct netcode_socket_t * socket, struct netcode_ad
struct sockaddr_storage addr;
memcpy( (char*) &addr, (char*) &socket_address, sizeof(socket_address) );

if ( netcode_set_socket_codepoint( socket->handle, QOSTrafficTypeAudioVideo, 0, (sockaddr*)&addr ) != 0 )
if ( netcode_set_socket_codepoint( socket->handle, QOSTrafficTypeAudioVideo, 0, (struct sockaddr*)&addr ) != 0 )
{
netcode_printf( NETCODE_LOG_LEVEL_ERROR, "error: failed to enable packet tagging (ipv6)\n" );
netcode_socket_destroy( s );
Expand All @@ -769,7 +769,7 @@ void netcode_socket_set_qos( struct netcode_socket_t * socket, struct netcode_ad
struct sockaddr_storage addr;
memcpy( (char*) &addr, (char*) &socket_address, sizeof(socket_address) );

if ( netcode_set_socket_codepoint( socket->handle, QOSTrafficTypeAudioVideo, 0, (sockaddr*)&addr ) != 0 )
if ( netcode_set_socket_codepoint( socket->handle, QOSTrafficTypeAudioVideo, 0, (struct sockaddr*)&addr ) != 0 )
{
netcode_printf( NETCODE_LOG_LEVEL_ERROR, "error: failed to enable packet tagging (ipv4)\n" );
netcode_socket_destroy( s );
Expand Down

0 comments on commit 7290291

Please sign in to comment.