File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ static void DestroyAddress(NET_Address *addr)
341341 }
342342}
343343
344- static NET_Address * CreateSDLNetAddrFromSockAddr (struct sockaddr * saddr , SockLen saddrlen )
344+ static NET_Address * CreateSDLNetAddrFromSockAddr (const struct sockaddr * saddr , SockLen saddrlen )
345345{
346346 // !!! FIXME: this all seems inefficient in the name of keeping addresses generic.
347347 char hostbuf [128 ];
@@ -586,9 +586,6 @@ const char *NET_GetAddressString(NET_Address *addr)
586586
587587int NET_CompareAddresses (const NET_Address * sdlneta , const NET_Address * sdlnetb )
588588{
589- const struct addrinfo * a ;
590- const struct addrinfo * b ;
591-
592589 if (sdlneta == sdlnetb ) { // same pointer?
593590 return 0 ;
594591 } else if (sdlneta && !sdlnetb ) {
@@ -597,8 +594,8 @@ int NET_CompareAddresses(const NET_Address *sdlneta, const NET_Address *sdlnetb)
597594 return 1 ;
598595 }
599596
600- a = sdlneta -> ainfo ;
601- b = sdlnetb -> ainfo ;
597+ const struct addrinfo * a = sdlneta -> ainfo ;
598+ const struct addrinfo * b = sdlnetb -> ainfo ;
602599 if (a == b ) { // same pointer?
603600 return 0 ;
604601 } else if (a && !b ) {
You can’t perform that action at this time.
0 commit comments