FreeBSD/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c
/**
 * Find a printer by its index
 */
Find a printer by its index
Find a printer by its index
static struct printer_entry *
printer_find_by_index(int32_t idx)
{
	struct printer_entry *entry;
	TAILQ_FOREACH(entry, &printer_tbl, link)
		if (entry->index == idx)
			return (entry);
	return (NULL);
}
static struct printer_entry * printer_find_by_index ( int32_t idx ) { struct printer_entry * entry ; TAILQ_FOREACH ( entry , & printer_tbl , link ) if ( entry -> index == idx ) return ( entry ) ; return ( NULL ) ; }
Find a printer by its index
Find a printer by its index