Переглянути джерело

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)
 {
+	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) */
 	if (cell->state != DLG_STATE_CONFIRMED_NA && cell->state != DLG_STATE_CONFIRMED) {
 		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*/
-	uac_req_t uac_r;
-	dlg_t* dialog_info;
-	str met = {"BYE", 3};
-	int result;
 
 	if ((dialog_info = build_dlg_t(cell, dir)) == 0){
 		LM_ERR("failed to create dlg_t\n");