FreeBSD/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c
/* Allocate memory and initialize list. */
Allocate memory and initialize list.
Allocate memory and initialize list .
struct snmp_mappings *
snmp_mapping_init(void)
{
	struct snmp_mappings *m;
	if ((m = calloc(1, sizeof(struct snmp_mappings))) == NULL) {
		syslog(LOG_ERR, "malloc() failed: %s", strerror(errno));
		return (NULL);
	}
	return (m);
}
struct snmp_mappings * snmp_mapping_init ( void ) { struct snmp_mappings * m ; if ( ( m = calloc ( 1 , sizeof ( struct snmp_mappings ) ) ) == NULL ) { syslog ( LOG_ERR , " " , strerror ( errno ) ) ; return ( NULL ) ; } return ( m ) ; }
Allocate memory and initialize list.
Allocate memory and initialize list .