FreeBSD/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c
/* Initialize the enum pairs list of a oid2str entry. */
Initialize the enum pairs list of a oid2str entry.
Initialize the enum pairs list of a oid2str entry .
struct enum_pairs *
enum_pairs_init(void)
{
	struct enum_pairs *snmp_enum;
	if ((snmp_enum = malloc(sizeof(struct enum_pairs))) == NULL) {
		syslog(LOG_ERR, "malloc() failed: %s", strerror(errno));
		return (NULL);
	}
	STAILQ_INIT(snmp_enum);
	return (snmp_enum);
}
struct enum_pairs * enum_pairs_init ( void ) { struct enum_pairs * snmp_enum ; if ( ( snmp_enum = malloc ( sizeof ( struct enum_pairs ) ) ) == NULL ) { syslog ( LOG_ERR , " " , strerror ( errno ) ) ; return ( NULL ) ; } STAILQ_INIT ( snmp_enum ) ; return ( snmp_enum ) ; }
Initialize the enum pairs list of a oid2str entry.
Initialize the enum pairs list of a oid2str entry .