diff --git a/sflphone-gtk/src/accountwindow.c b/sflphone-gtk/src/accountwindow.c index e0bc3b1b27408ea6f1b016020ce184c4af1bc345..b220c4f91962982ea6b3758083a857d0f5793292 100644 --- a/sflphone-gtk/src/accountwindow.c +++ b/sflphone-gtk/src/accountwindow.c @@ -92,7 +92,7 @@ stun_state( void ) void show_account_window (account_t * a) { - guint response; + gint response; GtkWidget *image; currentAccount = a; diff --git a/sflphone-gtk/src/actions.c b/sflphone-gtk/src/actions.c index c0e60f1544e535d07cfb61ccfb7f0e785e7dd883..39cbbf2ca37676d0809c21c06bd09524fac43b9e 100644 --- a/sflphone-gtk/src/actions.c +++ b/sflphone-gtk/src/actions.c @@ -143,7 +143,7 @@ sflphone_fill_account_list(gboolean toolbarInitialized) } g_strfreev (array); - int i; + unsigned int i; for( i = 0; i < account_list_get_size(); i++) { account_t * a = account_list_get_nth (i); diff --git a/sflphone-gtk/src/audioconf.c b/sflphone-gtk/src/audioconf.c index 2ff1b9b9aac9b450f137eedc898d916e84277ce2..d71b4a2bd8525b1d47e0c532c870ac3551683222 100644 --- a/sflphone-gtk/src/audioconf.c +++ b/sflphone-gtk/src/audioconf.c @@ -57,7 +57,7 @@ config_window_fill_codec_list() gtk_list_store_clear(codecStore); // Insert codecs - int i; + unsigned int i; for(i = 0; i < codec_list_get_size(); i++) { codec_t *c = codec_list_get_nth(i); diff --git a/sflphone-gtk/src/calllist.c b/sflphone-gtk/src/calllist.c index d188d2d1941190b7a249ac07f3b0813c0af29707..c9629ad463cb8b8cd91d72294d39237e78d768c3 100644 --- a/sflphone-gtk/src/calllist.c +++ b/sflphone-gtk/src/calllist.c @@ -104,7 +104,7 @@ call_list_add (calltab_t* tab, call_t * c) void call_list_clean_history( void ) { - int i; + unsigned int i; guint size = call_list_get_size( history ); g_print("history list size = %i\n", call_list_get_size( history )); for( i = 0 ; i < size ; i++ ) diff --git a/sflphone-gtk/src/calltree.c b/sflphone-gtk/src/calltree.c index 1281f9d53a3bcad1242217082c54054cf7952cb6..cdb7c992786a47c0c8b31e57b3e113529d2fee16 100644 --- a/sflphone-gtk/src/calltree.c +++ b/sflphone-gtk/src/calltree.c @@ -68,7 +68,7 @@ is_inserted( GtkWidget* button ) } static gboolean -button_pressed(GtkWidget* widget, GdkEventButton *event, gpointer user_data) +button_pressed(GtkWidget* widget, GdkEventButton *event, gpointer user_data UNUSED) { if (event->button == 3 && event->type == GDK_BUTTON_PRESS) { diff --git a/sflphone-gtk/src/codeclist.c b/sflphone-gtk/src/codeclist.c index fb434c0fe6dd31e05231e014991ec707c67c69f5..2227456746db1006de4a48565ab80b72530f6c47 100644 --- a/sflphone-gtk/src/codeclist.c +++ b/sflphone-gtk/src/codeclist.c @@ -128,7 +128,7 @@ codec_list_move_codec_up(guint index) } // DEBUG - int i; + unsigned int i; printf("\nCodec list\n"); for(i=0; i < codecQueue->length; i++) printf("%s\n", codec_list_get_nth(i)->name); @@ -147,7 +147,7 @@ codec_list_move_codec_down(guint index) } // PRINT - int i; + unsigned int i; printf("\nCodec list\n"); for(i=0; i < codecQueue->length; i++) printf("%s\n", codec_list_get_nth(i)->name); diff --git a/sflphone-gtk/src/configwindow.c b/sflphone-gtk/src/configwindow.c index 65dd3ee2368fee1579e1873c20c7cf747ddf5bb3..bd5ffe20a94d954177d1ea203ae433c923827134 100644 --- a/sflphone-gtk/src/configwindow.c +++ b/sflphone-gtk/src/configwindow.c @@ -74,7 +74,7 @@ config_window_fill_account_list() GtkTreeIter iter; gtk_list_store_clear(accountStore); - int i; + unsigned int i; for(i = 0; i < account_list_get_size(); i++) { account_t * a = account_list_get_nth (i); @@ -97,22 +97,6 @@ config_window_fill_account_list() } } - -/** - * Refresh all audio settings - */ -static void -detect_all_audio_settings() -{ - // Update lists - config_window_fill_output_audio_device_list(); - config_window_fill_input_audio_device_list(); - - // Select active device in combo box - //select_active_output_audio_device(); - //select_active_input_audio_device(); -} - /** * Delete an account */ diff --git a/sflphone-gtk/src/mainwindow.c b/sflphone-gtk/src/mainwindow.c index 5561aebc9e25609f3b55c4e4af306cbf97cd2584..6565d512fb425f0d724819f0e917055b4972a12d 100644 --- a/sflphone-gtk/src/mainwindow.c +++ b/sflphone-gtk/src/mainwindow.c @@ -61,7 +61,7 @@ gboolean main_window_ask_quit(){ guint count = call_list_get_size(current_calls); GtkWidget * dialog; - guint response; + gint response; gchar * question; if(count == 1) diff --git a/sflphone-gtk/src/menus.c b/sflphone-gtk/src/menus.c index 7d2b43905d009bc592f35de7b311ccb3fb922451..586bd79e115f1b92bcc879ae840a77cf22f95e8d 100644 --- a/sflphone-gtk/src/menus.c +++ b/sflphone-gtk/src/menus.c @@ -449,7 +449,7 @@ edit_paste ( void * foo UNUSED) case CALL_STATE_CURRENT: default: { - int i; + unsigned int i; for(i = 0; i < strlen(no); i++) { gchar * oneNo = g_strndup(&no[i], 1); @@ -805,7 +805,7 @@ show_popup_menu (GtkWidget *my_widget, GdkEventButton *event) gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_items); gtk_widget_show (menu_items); - int i; + unsigned int i; account_t* acc; gchar* alias; for( i = 0 ; i < account_list_get_size() ; i++ ){ diff --git a/sflphone-gtk/src/statusicon.c b/sflphone-gtk/src/statusicon.c index 84c414a8f14306684c2c4931767fc6f05fa43b4c..4b72d11366e7abd5b7cf228722cdfc07d5ab3a72 100644 --- a/sflphone-gtk/src/statusicon.c +++ b/sflphone-gtk/src/statusicon.c @@ -30,7 +30,7 @@ GtkWidget * show_menu_item; gboolean __minimized = MINIMIZED; void -status_quit ( void * foo ) +status_quit ( void * foo UNUSED) { sflphone_quit(); }