MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / sentinelAddrIsEqual

Function sentinelAddrIsEqual

src/sentinel.cpp:640–642  ·  view source on GitHub ↗

Return non-zero if two addresses are equal. */

Source from the content-addressed store, hash-verified

638
639/* Return non-zero if two addresses are equal. */
640int sentinelAddrIsEqual(sentinelAddr *a, sentinelAddr *b) {
641 return a->port == b->port && !strcasecmp(a->ip,b->ip);
642}
643
644/* Return non-zero if a hostname matches an address. */
645int sentinelAddrEqualsHostname(sentinelAddr *a, char *hostname) {

Calls

no outgoing calls

Tested by

no test coverage detected