]> sjero.net Git - linphone/commitdiff
fix unused variables
authorSimon Morlat <simon.morlat@linphone.org>
Tue, 31 May 2011 08:54:34 +0000 (10:54 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Tue, 31 May 2011 08:54:34 +0000 (10:54 +0200)
coreapi/linphonecore.c
coreapi/proxy.c
coreapi/sal_eXosip2.c
gtk/friendlist.c
oRTP

index 4c6deea9a9e42e08326cc619880fa6b5b0c3df88..2b8eb73e6d84ab9c80aa7a3c751a4f6de4174723 100644 (file)
@@ -1636,9 +1636,9 @@ void linphone_core_iterate(LinphoneCore *lc){
                 linphone_core_start_invite() */
                calls=calls->next;
                if (call->state==LinphoneCallOutgoingInit && (curtime-call->start_time>=2)){
-                               /*start the call even if the OPTIONS reply did not arrive*/
-                               linphone_core_start_invite(lc,call,NULL);
-                       }
+                       /*start the call even if the OPTIONS reply did not arrive*/
+                       linphone_core_start_invite(lc,call,NULL);
+               }
                if (call->dir==LinphoneCallIncoming && call->state==LinphoneCallOutgoingRinging){
                        elapsed=curtime-call->start_time;
                        ms_message("incoming call ringing for %i seconds",elapsed);
@@ -1996,7 +1996,6 @@ LinphoneCall * linphone_core_invite_address(LinphoneCore *lc, const LinphoneAddr
 **/
 LinphoneCall * linphone_core_invite_address_with_params(LinphoneCore *lc, const LinphoneAddress *addr, const LinphoneCallParams *params)
 {
-       int err=0;
        const char *route=NULL;
        const char *from=NULL;
        LinphoneProxyConfig *proxy=NULL;
@@ -2049,7 +2048,7 @@ LinphoneCall * linphone_core_invite_address_with_params(LinphoneCore *lc, const
        lc->current_call=call;
        linphone_call_set_state (call,LinphoneCallOutgoingInit,"Starting outgoing call");
        if (dest_proxy!=NULL || lc->sip_conf.ping_with_options==FALSE){
-               err=linphone_core_start_invite(lc,call,dest_proxy);
+               linphone_core_start_invite(lc,call,dest_proxy);
        }else{
                /*defer the start of the call after the OPTIONS ping*/
                call->ping_op=sal_op_new(lc->sal);
index a4a062dcaaf608d7ae06dd0bd87acbc06698272b..fbbf9ce18c0398bc4e1fe2c457dd546244a81c15 100644 (file)
@@ -269,10 +269,6 @@ static char *guess_contact_for_register(LinphoneProxyConfig *obj){
 }
 
 static void linphone_proxy_config_register(LinphoneProxyConfig *obj){
-       const char *id_str;
-
-       if (obj->reg_identity!=NULL) id_str=obj->reg_identity;
-       else id_str=linphone_core_get_primary_contact(obj->lc);
        if (obj->reg_sendregister){
                char *contact;
                if (obj->op)
index 869a7d8bb6363cc44d78a168539d195fc6ab8058..65c60afddcd53581efeaae80d6d481742ced8915 100644 (file)
@@ -561,19 +561,18 @@ int sal_call(SalOp *h, const char *from, const char *to){
 
 int sal_call_notify_ringing(SalOp *h, bool_t early_media){
        osip_message_t *msg;
-       int err;
        
        /*if early media send also 180 and 183 */
        if (early_media && h->sdp_answer){
                msg=NULL;
                eXosip_lock();
-               err=eXosip_call_build_answer(h->tid,180,&msg);
+               eXosip_call_build_answer(h->tid,180,&msg);
                if (msg){
                        set_sdp(msg,h->sdp_answer);
                        eXosip_call_send_answer(h->tid,180,msg);
                }
                msg=NULL;
-               err=eXosip_call_build_answer(h->tid,183,&msg);
+               eXosip_call_build_answer(h->tid,183,&msg);
                if (msg){
                        set_sdp(msg,h->sdp_answer);
                        eXosip_call_send_answer(h->tid,183,msg);
index f19307606aa10bac133d166f3fc29cdca50d426d..d1b116272f0c749138b4076f43ee6da388988c72 100644 (file)
@@ -70,7 +70,7 @@ static GdkPixbuf *create_status_picture(LinphoneOnlineStatus ss){
 void linphone_gtk_set_friend_status(GtkWidget *friendlist , LinphoneFriend * fid, const gchar *url, const gchar *status, const gchar *img){
        GtkTreeIter iter;
        LinphoneFriend *tmp=0;
-       gboolean found=FALSE;
+
        GtkTreeModel *model=gtk_tree_view_get_model(GTK_TREE_VIEW(friendlist));
        if (gtk_tree_model_get_iter_first(model,&iter)) {
                do{
@@ -81,10 +81,9 @@ void linphone_gtk_set_friend_status(GtkWidget *friendlist , LinphoneFriend * fid
                                gtk_list_store_set(GTK_LIST_STORE(model),&iter,FRIEND_PRESENCE_STATUS,status,-1);
                                pixbuf = create_pixbuf(img);
                                if (pixbuf)
-                                 {
-                                   gtk_list_store_set(GTK_LIST_STORE(model),&iter,FRIEND_PRESENCE_IMG, pixbuf,-1);
-                                 }
-                                 found=TRUE;
+                               {
+                                       gtk_list_store_set(GTK_LIST_STORE(model),&iter,FRIEND_PRESENCE_IMG, pixbuf,-1);
+                               }
                        }
                }while(gtk_tree_model_iter_next(model,&iter));
        }
diff --git a/oRTP b/oRTP
index b0c5530bee255033f09011e5aab6d036e00520dc..eb4f54377e2560a76a05f62a22c961edbce8f4c2 160000 (submodule)
--- a/oRTP
+++ b/oRTP
@@ -1 +1 @@
-Subproject commit b0c5530bee255033f09011e5aab6d036e00520dc
+Subproject commit eb4f54377e2560a76a05f62a22c961edbce8f4c2