From 23ce8194013f12721cc8363a4d7605a905442d3b Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Sat, 27 Jul 2013 01:07:00 +0200 Subject: [PATCH] fix constness of LinphoneCall * returned by linphone_core_find_call_by_uri(). There is no reason to return a const pointer, there's nothing you can do with a const LinphoneCall* in liblinphone. --- coreapi/linphonecore.c | 4 ++-- coreapi/linphonecore.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 17e77a41d..de9bac4cf 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -5885,9 +5885,9 @@ const char *linphone_core_get_zrtp_secrets_file(LinphoneCore *lc){ return lc->zrtp_secrets_cache; } -const LinphoneCall* linphone_core_find_call_from_uri(const LinphoneCore *lc, const char *uri) { +LinphoneCall* linphone_core_find_call_from_uri(const LinphoneCore *lc, const char *uri) { MSList *calls; - const LinphoneCall *c; + LinphoneCall *c; const LinphoneAddress *address; char *current_uri; diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index dff394515..231ba0c05 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -1626,7 +1626,7 @@ const char *linphone_core_get_zrtp_secrets_file(LinphoneCore *lc); * @param uri which should match call remote uri * @return LinphoneCall or NULL is no match is found */ -LINPHONE_PUBLIC const LinphoneCall* linphone_core_find_call_from_uri(const LinphoneCore *lc, const char *uri); +LINPHONE_PUBLIC LinphoneCall* linphone_core_find_call_from_uri(const LinphoneCore *lc, const char *uri); LINPHONE_PUBLIC int linphone_core_add_to_conference(LinphoneCore *lc, LinphoneCall *call); LINPHONE_PUBLIC int linphone_core_add_all_to_conference(LinphoneCore *lc);