Browse Source

- su_getport type changed from short to unsigned short

Andrei Pelinescu-Onciul 21 năm trước cách đây
mục cha
commit
ab0144d54a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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: