FreeBSD/contrib/ntp/ntpq/ntpq-subs.c
/*
 * qcmp_mru_count - sort MRU entries by times seen (hit count).
 */
sort MRU entries by times seen (hit count).
sort MRU entries by times seen ( hit count ) .
static int
qcmp_mru_count(
	const void *v1,
	const void *v2
	)
{
	const mru * const *	ppm1 = v1;
	const mru * const *	ppm2 = v2;
	const mru *		pm1;
	const mru *		pm2;
	pm1 = *ppm1;
	pm2 = *ppm2;
	return (pm1->count < pm2->count)
		   ? -1
		   : ((pm1->count == pm2->count)
			  ? 0
			  : 1);
}
static int qcmp_mru_count ( const void * v1 , const void * v2 ) { const mru * const * ppm1 = v1 ; const mru * const * ppm2 = v2 ; const mru * pm1 ; const mru * pm2 ; pm1 = * ppm1 ; pm2 = * ppm2 ; return ( pm1 -> count < pm2 -> count ) ? -1 : ( ( pm1 -> count == pm2 -> count ) ? 0 : 1 ) ; }
qcmp_mru_count - sort MRU entries by times seen (hit count).
qcmp_mru_count - sort MRU entries by times seen ( hit count ) .