Commit f588e38b authored by Pekka Pessi's avatar Pekka Pessi
Browse files

nua_glib.c: removed C99isms.

darcs-hash:20060926165139-65a35-6c17c88b3e0ca9baffa4f174caae0eb3bb3c83cf.gz
parent f7ac476b
...@@ -260,6 +260,7 @@ nua_glib_constructor (GType type, ...@@ -260,6 +260,7 @@ nua_glib_constructor (GType type,
GObject *obj; GObject *obj;
int res = 0; int res = 0;
GSource *gsource; GSource *gsource;
NuaGlib *self;
{ {
/* Invoke parent constructor. /* Invoke parent constructor.
...@@ -274,7 +275,7 @@ nua_glib_constructor (GType type, ...@@ -274,7 +275,7 @@ nua_glib_constructor (GType type,
construct_properties); construct_properties);
} }
NuaGlib *self = NUA_GLIB(obj); self = NUA_GLIB(obj);
/* create a su event loop and connect it to glib */ /* create a su event loop and connect it to glib */
self->priv->root = su_root_source_create(self); self->priv->root = su_root_source_create(self);
...@@ -1966,6 +1967,8 @@ sof_i_refer (nua_t *nua, NuaGlib *self, ...@@ -1966,6 +1967,8 @@ sof_i_refer (nua_t *nua, NuaGlib *self,
sip_refer_to_t const *refer_to; sip_refer_to_t const *refer_to;
NuaGlibOp *op2; NuaGlibOp *op2;
char *refer_to_str; char *refer_to_str;
char *to_url;
char *refer_url;
assert(sip); assert(sip);
...@@ -1975,10 +1978,10 @@ sof_i_refer (nua_t *nua, NuaGlib *self, ...@@ -1975,10 +1978,10 @@ sof_i_refer (nua_t *nua, NuaGlib *self,
assert(from && to); assert(from && to);
char *to_url = url_as_string(self->priv->home, to->a_url); to_url = url_as_string(self->priv->home, to->a_url);
char *refer_url = url_as_string(self->priv->home, refer_to->r_url); refer_url = url_as_string(self->priv->home, refer_to->r_url);
if(refer_to->r_url->url_type == url_sip) { if (refer_to->r_url->url_type == url_sip) {
refer_to_str = sip_header_as_string(self->priv->home, (sip_header_t*)refer_to); refer_to_str = sip_header_as_string(self->priv->home, (sip_header_t*)refer_to);
op2 = nua_glib_op_create(self, sip_method_invite, refer_to_str, op2 = nua_glib_op_create(self, sip_method_invite, refer_to_str,
NUTAG_NOTIFY_REFER(nh), TAG_END()); NUTAG_NOTIFY_REFER(nh), 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