Browse code

ims_charging: fixed compiler warnings for kemi exports

Daniel-Constantin Mierla authored on 22/04/2021 07:29:26
Showing 1 changed files
... ...
@@ -409,7 +409,7 @@ static int ki_ro_ccr_stop(sip_msg_t *msg, str* p_direction, int p_code, str* p_r
409 409
     struct ro_session* ro_session;
410 410
     struct ro_session_entry *ro_session_entry;
411 411
     unsigned int h_entry;
412
-    str s_code, s_reason;
412
+    str s_reason;
413 413
     unsigned int code;
414 414
     int dir = 0; /*any side*/
415 415
     char *c_direction;
... ...
@@ -527,7 +527,7 @@ static int ki_ro_ccr(sip_msg_t *msg, str* s_route_name, str* s_direction, int re
527 527
         return RO_RETURN_ERROR;
528 528
     }
529 529
     
530
-    dir = get_direction_as_int(&s_direction);
530
+    dir = get_direction_as_int(s_direction);
531 531
     
532 532
     if (dir == RO_ORIG_DIRECTION) {
533 533
         //get caller IMPU from asserted identity
... ...
@@ -610,7 +610,7 @@ send_ccr:
610 610
         goto done;
611 611
     }
612 612
     
613
-    ret = Ro_Send_CCR(msg, dlg, dir, reservation_units, &s_incoming_trunk_id, &s_outgoing_trunk_id, &pani, cfg_action, tindex, tlabel);
613
+    ret = Ro_Send_CCR(msg, dlg, dir, reservation_units, s_incoming_trunk_id, s_outgoing_trunk_id, &pani, cfg_action, tindex, tlabel);
614 614
     
615 615
     if(ret < 0){
616 616
         LM_ERR("Failed to send CCR\n");
... ...
@@ -669,6 +669,7 @@ static int ki_ro_set_session_id_avp(sip_msg_t *msg) {
669 669
     res = create_response_avp_string("ro_session_id", &ro_session->ro_session_id);
670 670
     dlgb.release_dlg(dlg);
671 671
     unref_ro_session(ro_session, 1, 1);
672
+    return res;
672 673
 }
673 674
 
674 675
 static int ro_fixup_stop(void **param, int param_no) {
... ...
@@ -702,4 +703,4 @@ int mod_register(char *path, int *dlflags, void *p1, void *p2)
702 703
 {
703 704
     sr_kemi_modules_add(ims_charging_kemi_exports);
704 705
     return 0;
705
-}
706 706
\ No newline at end of file
707
+}