Bladeren bron

- su_getport type changed from short to unsigned short

Andrei Pelinescu-Onciul 21 jaren geleden
bovenliggende
commit
ab0144d54a
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      ip_addr.h

+ 1 - 1
ip_addr.h

@@ -246,7 +246,7 @@ static inline int su_cmp(union sockaddr_union* s1, union sockaddr_union* s2)
 
 
 /* gets the port number (host byte order) */
-static inline short su_getport(union sockaddr_union* su)
+static inline unsigned short su_getport(union sockaddr_union* su)
 {
 	switch(su->s.sa_family){
 		case AF_INET: