src/libs/elektra/keyset.c
/**
 * @brief Compare only the owner of two keys (not the name)
 *
 * @return comparision result
 */
@brief Compare only the owner of two keys (not the name)
@return comparision result
@brief Compare only the owner of two keys ( not the name ) @return comparision result
static int keyCompareByOwner (const void * p1, const void * p2)
{
	Key * key1 = *(Key **)p1;
	Key * key2 = *(Key **)p2;
	const char * owner1 = keyValue (keyGetMeta (key1, "owner"));
	const char * owner2 = keyValue (keyGetMeta (key2, "owner"));
	if (!owner1 && !owner2) return 0;
	if (!owner1) return -1;
	if (!owner2) return 1;
	return elektraStrCmp (owner1, owner2);
}
static int keyCompareByOwner ( const void * p1 , const void * p2 ) { Key * key1 = * ( Key * * ) p1 ; Key * key2 = * ( Key * * ) p2 ; const char * owner1 = keyValue ( keyGetMeta ( key1 , " " ) ) ; const char * owner2 = keyValue ( keyGetMeta ( key2 , " " ) ) ; if ( ! owner1 && ! owner2 ) return 0 ; if ( ! owner1 ) return -1 ; if ( ! owner2 ) return 1 ; return elektraStrCmp ( owner1 , owner2 ) ; }
@brief Compare only the owner of two keys (not the name)
 @return comparision result
@brief Compare only the owner of two keys ( not the name ) @return comparision result