FreeBSD/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c
/**
 * Delete an entry from the device table.
 */
Delete an entry from the device table.
Delete an entry from the device table .
void
device_entry_delete(struct device_entry *entry)
{
	struct device_map_entry *map;
	assert(entry != NULL);
	TAILQ_REMOVE(&device_tbl, entry, link);
	STAILQ_FOREACH(map, &device_map, link)
		if (map->entry_p == entry) {
			map->entry_p = NULL;
			break;
		}
	FREE_DEV_STRUCT(entry);
}
void device_entry_delete ( struct device_entry * entry ) { struct device_map_entry * map ; assert ( entry != NULL ) ; TAILQ_REMOVE ( & device_tbl , entry , link ) ; STAILQ_FOREACH ( map , & device_map , link ) if ( map -> entry_p == entry ) { map -> entry_p = NULL ; break ; } FREE_DEV_STRUCT ( entry ) ; }
Delete an entry from the device table.
Delete an entry from the device table .