Define variables at the beginning of a code block.

This commit is contained in:
Ghislain MARY 2013-04-08 17:50:06 +02:00
parent 84eab62437
commit fac86ba95e
2 changed files with 6 additions and 3 deletions

View file

@ -320,9 +320,11 @@ static void cancelled_ringing_call(void) {
static void early_declined_call(void) {
LinphoneCoreManager* marie = linphone_core_manager_new(liblinphone_tester_file_prefix, "marie_rc");
LinphoneCoreManager* pauline = linphone_core_manager_new(liblinphone_tester_file_prefix, "pauline_rc");
linphone_core_set_max_calls(marie->lc,0);
LinphoneCallLog* in_call;
LinphoneCall* out_call = linphone_core_invite(pauline->lc,"marie");
LinphoneCall* out_call;
linphone_core_set_max_calls(marie->lc,0);
out_call = linphone_core_invite(pauline->lc,"marie");
linphone_call_ref(out_call);
CU_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&pauline->stat.number_of_LinphoneCallReleased,1));

View file

@ -80,6 +80,7 @@ static void text_message_compatibility_mode(void) {
char*tmp;
LCSipTransports transport;
char* to = linphone_address_as_string(pauline->identity);
LinphoneChatRoom* chat_room;
linphone_core_get_default_proxy(marie->lc,&proxy);
CU_ASSERT_PTR_NOT_NULL (proxy);
@ -100,7 +101,7 @@ static void text_message_compatibility_mode(void) {
CU_ASSERT_TRUE (wait_for(marie->lc,marie->lc,&marie->stat.number_of_LinphoneRegistrationOk,1));
LinphoneChatRoom* chat_room = linphone_core_create_chat_room(marie->lc,to);
chat_room = linphone_core_create_chat_room(marie->lc,to);
linphone_chat_room_send_message(chat_room,"Bla bla bla bla");
CU_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&pauline->stat.number_of_LinphoneMessageReceived,1));
CU_ASSERT_EQUAL(pauline->stat.number_of_LinphoneMessageReceivedLegacy,1);