FreeBSD/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c
/**
 * Find an entry given its index.
 */
Find an entry given its index.
Find an entry given its index .
struct device_entry *
device_find_by_index(int32_t idx)
{
	struct device_entry *entry;
	TAILQ_FOREACH(entry, &device_tbl, link)
		if (entry->index == idx)
			return (entry);
	return (NULL);
}
struct device_entry * device_find_by_index ( int32_t idx ) { struct device_entry * entry ; TAILQ_FOREACH ( entry , & device_tbl , link ) if ( entry -> index == idx ) return ( entry ) ; return ( NULL ) ; }
Find an entry given its index.
Find an entry given its index .