Skip to content

Commit

Permalink
more c goodness
Browse files Browse the repository at this point in the history
  • Loading branch information
gafferongames committed Sep 17, 2024
1 parent b45ea35 commit 66d37f3
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 @@ -723,7 +723,7 @@ int netcode_socket_create( struct netcode_socket_t * s, struct netcode_address_t

if ( address->type == NETCODE_ADDRESS_IPV6 )
{
addr = (sockaddr*) &sin6;
addr = (struct sockaddr*) &sin6;
socklen_t len = sizeof( sin6 );
if ( getsockname( s->handle, addr, &len ) == -1 )
{
Expand All @@ -735,7 +735,7 @@ int netcode_socket_create( struct netcode_socket_t * s, struct netcode_address_t
}
else
{
addr = (sockaddr*) &sin4;
addr = (struct sockaddr*) &sin4;
socklen_t len = sizeof( sin4 );
if ( getsockname( s->handle, addr, &len ) == -1 )
{
Expand Down

0 comments on commit 66d37f3

Please sign in to comment.