From 5f084675bd5eb72c9c891746f2d7b58f5b4f9969 Mon Sep 17 00:00:00 2001 From: Sandrine Avakian Date: Thu, 6 Apr 2017 11:27:54 +0200 Subject: [PATCH] remove unused variable in tests. Moving function for api to error_info.h --- coreapi/error_info.c | 5 +++++ include/linphone/error_info.h | 7 +++++++ tester/call_single_tester.c | 1 - 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/coreapi/error_info.c b/coreapi/error_info.c index b889bbf46..4c9008b60 100644 --- a/coreapi/error_info.c +++ b/coreapi/error_info.c @@ -215,6 +215,11 @@ void linphone_error_info_from_sal_op(LinphoneErrorInfo *ei, const SalOp *op){ } } +LinphoneErrorInfo* linphone_error_info_get_sub(const LinphoneErrorInfo *ei){ + + return ei->sub_ei; +} + void linphone_error_info_set_sub_error_info(LinphoneErrorInfo *ei, LinphoneErrorInfo *appended_ei){ if (appended_ei != NULL){ ei->sub_ei = appended_ei; diff --git a/include/linphone/error_info.h b/include/linphone/error_info.h index 11d5af65c..8336c7ae8 100644 --- a/include/linphone/error_info.h +++ b/include/linphone/error_info.h @@ -62,6 +62,13 @@ LINPHONE_PUBLIC void linphone_error_info_unref(LinphoneErrorInfo *ei); **/ LINPHONE_PUBLIC LinphoneReason linphone_error_info_get_reason(const LinphoneErrorInfo *ei); +/** + * Get pointer to chained LinphoneErrorInfo set in sub_ei. + * @param ei ErrorInfo object + * @return LinphoneErrorInfo pointer defined in the ei object. + */ +LINPHONE_PUBLIC LinphoneErrorInfo* linphone_error_info_get_sub(const LinphoneErrorInfo *ei); + /** * Get textual phrase from the error info. * This is the text that is provided by the peer in the protocol (SIP). diff --git a/tester/call_single_tester.c b/tester/call_single_tester.c index 0fa27e694..df66f7849 100644 --- a/tester/call_single_tester.c +++ b/tester/call_single_tester.c @@ -1790,7 +1790,6 @@ static void call_callee_with_custom_header_or_sdp_attributes(void) { stats initial_caller=caller_mgr->stat; stats initial_callee=callee_mgr->stat; - bool_t result=FALSE; bool_t did_receive_call; const LinphoneCallParams *caller_remote_params;