Skip to content

Commit

Permalink
my brain is mush
Browse files Browse the repository at this point in the history
  • Loading branch information
gafferongames committed Sep 17, 2024
1 parent f63326e commit c9ec7d2
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 @@ -745,7 +745,7 @@ void netcode_socket_set_qos( struct netcode_socket_t * socket, struct netcode_ad
}
socket_address.sin6_port = htons( to->port );

sockaddr_storage addr;
struct sockaddr_storage addr;
memcpy( (char*) &addr, (char*) &socket_address, sizeof(socket_address) );

if ( netcode_set_socket_codepoint( socket->handle, QOSTrafficTypeAudioVideo, 0, &addr ) != 0 )
Expand All @@ -766,7 +766,7 @@ void netcode_socket_set_qos( struct netcode_socket_t * socket, struct netcode_ad
( ( (uint32_t) to->data.ipv4[3] ) << 24 );
socket_address.sin_port = htons( to->port );

sockaddr_storage addr;
struct sockaddr_storage addr;
memcpy( (char*) &addr, (char*) &socket_address, sizeof(socket_address) );

if ( netcode_set_socket_codepoint( socket->handle, QOSTrafficTypeAudioVideo, 0, &addr ) != 0 )
Expand Down

0 comments on commit c9ec7d2

Please sign in to comment.