MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sentinelAddrIsEqual

Function sentinelAddrIsEqual

app/redis-6.2.6/src/sentinel.c:638–640  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Calls 1

strcasecmpFunction · 0.85

Tested by

no test coverage detected