apps/app_verify.c
static struct call_verify *alloc_profile(const char *vname)
{
	struct call_verify *v;

	if (!(v = ast_calloc(1, sizeof(*v)))) {
		return NULL;
	}

	ast_mutex_init(&v->lock);
	ast_copy_string(v->name, vname, sizeof(v->name));

	/* initialize these only on allocation, so they're not reset during a reload */
	v->in = 0;
	v->insuccess = 0;
	v->out = 0;
	v->outsuccess = 0;
	v->total_blacklisted = 0;

	return v;
}
/*! \brief Allocate and initialize verify profile */
\brief Allocate and initialize verify profile
\ brief Allocate and initialize verify profile
static struct call_verify *alloc_profile(const char *vname)
{
	struct call_verify *v;
	if (!(v = ast_calloc(1, sizeof(*v)))) {
		return NULL;
	}
	ast_mutex_init(&v->lock);
	ast_copy_string(v->name, vname, sizeof(v->name));
	v->in = 0;
	v->insuccess = 0;
	v->out = 0;
	v->outsuccess = 0;
	v->total_blacklisted = 0;
	return v;
}
static struct call_verify * alloc_profile ( const char * vname ) { struct call_verify * v ; if ( ! ( v = ast_calloc ( 1 , sizeof ( * v ) ) ) ) { return NULL ; } ast_mutex_init ( & v -> lock ) ; ast_copy_string ( v -> name , vname , sizeof ( v -> name ) ) ; v -> in = 0 ; v -> insuccess = 0 ; v -> out = 0 ; v -> outsuccess = 0 ; v -> total_blacklisted = 0 ; return v ; }
\brief Allocate and initialize verify profile
\ brief Allocate and initialize verify profile
/* initialize these only on allocation, so they're not reset during a reload */