Improved comments.
FossilOrigin-Name: ebb8cd96004d34f3994b720966f6641632c37d3384eadbf549bf7d8140acd73e
This commit is contained in:
parent
ed4182270b
commit
b034a719b6
@ -30,11 +30,13 @@
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* compare two sockaddrs
|
* Compare two sockaddrs
|
||||||
* @param addr1 first address to compare
|
* @param addr1 first address to compare
|
||||||
* @param addr2 second address to compare
|
* @param addr2 second address to compare
|
||||||
* @cmpport if not zero, also compare the port
|
* @param cmpport if not zero, also compare the port
|
||||||
* @return 0 if both addriesses are equal
|
* @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
|
* Currently there are there are only AF_INET and AF_INET6
|
||||||
* suppoorted
|
* suppoorted
|
||||||
*/
|
*/
|
||||||
@ -77,9 +79,7 @@ int sock_cmpaddr(const struct sockaddr *addr1, const struct sockaddr *addr2,int
|
|||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return memcmp(s1,s2,slen);
|
return memcmp(s1,s2,slen);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user