Commit d00543d3 authored by Kai Vehmanen's avatar Kai Vehmanen

Get rid of the enum casts in nea_event_server.c

darcs-hash:20060828145441-7659e-4ef4771e806f667fcec7b665d376de1da2ea929a.gz
parent 27bc8b22
......@@ -253,16 +253,13 @@ void nua_stack_authorize(nua_t *nua,
tagi_t const *tags)
{
nea_sub_t *sub = NULL;
nea_state_t state;
int state_as_int = (int)nea_extended;
int state = nea_extended;
tl_gets(tags,
NEATAG_SUB_REF(sub),
NUTAG_SUBSTATE_REF(state_as_int),
NUTAG_SUBSTATE_REF(state),
TAG_END());
state = (nea_state_t)state_as_int;
if (sub && state > 0) {
nea_sub_auth(sub, state, TAG_NEXT(tags));
nua_stack_event(nua, nh, NULL, e, SIP_200_OK, TAG_END());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment