Commit f628dd66 authored by jehan's avatar jehan
Browse files

fix c89 compilation issue

parent 12685c30
...@@ -532,8 +532,9 @@ static void belle_sip_multipart_body_handler_clone(belle_sip_multipart_body_hand ...@@ -532,8 +532,9 @@ static void belle_sip_multipart_body_handler_clone(belle_sip_multipart_body_hand
} }
static void belle_sip_multipart_body_handler_begin_transfer(belle_sip_body_handler_t *obj) { static void belle_sip_multipart_body_handler_begin_transfer(belle_sip_body_handler_t *obj) {
const belle_sip_list_t *it;
belle_sip_multipart_body_handler_t *obj_multipart = (belle_sip_multipart_body_handler_t *)obj; belle_sip_multipart_body_handler_t *obj_multipart = (belle_sip_multipart_body_handler_t *)obj;
for (const belle_sip_list_t *it = obj_multipart->parts; it != NULL; it = it->next) { for (it = obj_multipart->parts; it != NULL; it = it->next) {
belle_sip_body_handler_t *bh = BELLE_SIP_BODY_HANDLER(it->data); belle_sip_body_handler_t *bh = BELLE_SIP_BODY_HANDLER(it->data);
belle_sip_body_handler_begin_transfer(bh); belle_sip_body_handler_begin_transfer(bh);
} }
...@@ -541,8 +542,9 @@ static void belle_sip_multipart_body_handler_begin_transfer(belle_sip_body_handl ...@@ -541,8 +542,9 @@ static void belle_sip_multipart_body_handler_begin_transfer(belle_sip_body_handl
} }
static void belle_sip_multipart_body_handler_end_transfer(belle_sip_body_handler_t *obj) { static void belle_sip_multipart_body_handler_end_transfer(belle_sip_body_handler_t *obj) {
const belle_sip_list_t *it;
belle_sip_multipart_body_handler_t *obj_multipart = (belle_sip_multipart_body_handler_t *)obj; belle_sip_multipart_body_handler_t *obj_multipart = (belle_sip_multipart_body_handler_t *)obj;
for (const belle_sip_list_t *it = obj_multipart->parts; it != NULL; it = it->next) { for (it = obj_multipart->parts; it != NULL; it = it->next) {
belle_sip_body_handler_t *bh = BELLE_SIP_BODY_HANDLER(it->data); belle_sip_body_handler_t *bh = BELLE_SIP_BODY_HANDLER(it->data);
belle_sip_body_handler_end_transfer(bh); belle_sip_body_handler_end_transfer(bh);
} }
......
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