ソースを参照

dialog(k): declare variables at function start

Fixes compilation for gcc < 3.0.
Andrei Pelinescu-Onciul 15 年 前
コミット
361ab5c90f
1 ファイル変更4 行追加4 行削除
  1. 4 4
      modules_k/dialog/dlg_req_within.c

+ 4 - 4
modules_k/dialog/dlg_req_within.c

@@ -237,6 +237,10 @@ error:
  */
  */
 static inline int send_bye(struct dlg_cell * cell, int dir, str *hdrs)
 static inline int send_bye(struct dlg_cell * cell, int dir, str *hdrs)
 {
 {
+	uac_req_t uac_r;
+	dlg_t* dialog_info;
+	str met = {"BYE", 3};
+	int result;
 	/* do not send BYE request for non-confirmed dialogs (not supported) */
 	/* do not send BYE request for non-confirmed dialogs (not supported) */
 	if (cell->state != DLG_STATE_CONFIRMED_NA && cell->state != DLG_STATE_CONFIRMED) {
 	if (cell->state != DLG_STATE_CONFIRMED_NA && cell->state != DLG_STATE_CONFIRMED) {
 		LM_ERR("terminating non-confirmed dialogs not supported\n");
 		LM_ERR("terminating non-confirmed dialogs not supported\n");
@@ -244,10 +248,6 @@ static inline int send_bye(struct dlg_cell * cell, int dir, str *hdrs)
 	}
 	}
 
 
 	/*verify direction*/
 	/*verify direction*/
-	uac_req_t uac_r;
-	dlg_t* dialog_info;
-	str met = {"BYE", 3};
-	int result;
 
 
 	if ((dialog_info = build_dlg_t(cell, dir)) == 0){
 	if ((dialog_info = build_dlg_t(cell, dir)) == 0){
 		LM_ERR("failed to create dlg_t\n");
 		LM_ERR("failed to create dlg_t\n");