Improved comments.

FossilOrigin-Name: ebb8cd96004d34f3994b720966f6641632c37d3384eadbf549bf7d8140acd73e
This commit is contained in:
7u83@mail.ru 2016-02-14 07:11:12 +00:00
parent ed4182270b
commit b034a719b6
1 changed files with 5 additions and 5 deletions

View File

@ -30,11 +30,13 @@
/**
* compare two sockaddrs
* Compare two sockaddrs
* @param addr1 first address to compare
* @param addr2 second address to compare
* @cmpport if not zero, also compare the port
* @return 0 if both addriesses are equal
* @param cmpport if not zero, also compare the port
* @return 0 if both addriesses are equal, otherwise a value grater
* or less than zero, depending of the result
*
* Currently there are there are only AF_INET and AF_INET6
* suppoorted
*/
@ -77,9 +79,7 @@ int sock_cmpaddr(const struct sockaddr *addr1, const struct sockaddr *addr2,int
return -1;
}
return memcmp(s1,s2,slen);
}