lib/libdmsg/msg_lnk.c
static
int
h2span_cluster_cmp(h2span_cluster_t *cls1, h2span_cluster_t *cls2)
{
	int r;

	if (cls1->peer_type < cls2->peer_type)
		return(-1);
	if (cls1->peer_type > cls2->peer_type)
		return(1);
	r = uuid_compare(&cls1->pfs_clid, &cls2->pfs_clid, NULL);
	if (r == 0)
		r = strcmp(cls1->cl_label, cls2->cl_label);

	return r;
}
/*
 * Cluster peer_type, uuid, AND label must match for a match
 */
Cluster peer_type, uuid, AND label must match for a match
Cluster peer_type uuid AND label must match for a match
static
int
h2span_cluster_cmp(h2span_cluster_t *cls1, h2span_cluster_t *cls2)
{
	int r;
	if (cls1->peer_type < cls2->peer_type)
		return(-1);
	if (cls1->peer_type > cls2->peer_type)
		return(1);
	r = uuid_compare(&cls1->pfs_clid, &cls2->pfs_clid, NULL);
	if (r == 0)
		r = strcmp(cls1->cl_label, cls2->cl_label);
	return r;
}
static int h2span_cluster_cmp ( h2span_cluster_t * cls1 , h2span_cluster_t * cls2 ) { int r ; if ( cls1 -> peer_type < cls2 -> peer_type ) return ( -1 ) ; if ( cls1 -> peer_type > cls2 -> peer_type ) return ( 1 ) ; r = uuid_compare ( & cls1 -> pfs_clid , & cls2 -> pfs_clid , NULL ) ; if ( r == 0 ) r = strcmp ( cls1 -> cl_label , cls2 -> cl_label ) ; return r ; }
Cluster peer_type, uuid, AND label must match for a match
Cluster peer_type uuid AND label must match for a match