Mercurial > audlegacy-plugins
changeset 2185:145966acb0c4
fixed some compilation warnings (was the original programmer on drugs
when he wrote that??)
author | mf0102 <0102@gmx.at> |
---|---|
date | Sun, 25 Nov 2007 17:27:39 +0100 |
parents | f2590691d4b7 |
children | a509498d76b9 |
files | src/evdev-plug/ed_ui.c |
diffstat | 1 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/evdev-plug/ed_ui.c Thu Nov 22 15:52:42 2007 +0100 +++ b/src/evdev-plug/ed_ui.c Sun Nov 25 17:27:39 2007 +0100 @@ -25,6 +25,7 @@ #include "ed_bindings_store.h" #include "ed_common.h" #include <stdlib.h> +#include <string.h> #include <linux/input.h> #include <audacious/i18n.h> @@ -536,7 +537,6 @@ cfg_config_cb_commit ( gpointer cfg_device_lv ) { GList *config_device_list = NULL; - GList *list_iter; GtkTreeModel *model; model = gtk_tree_view_get_model( GTK_TREE_VIEW(cfg_device_lv) ); @@ -757,7 +757,6 @@ case G_IO_IN: { gsize rb = 0; - GError *gerr = NULL; struct input_event inputev; g_io_channel_read_chars( iochan , (gchar*)&inputev , sizeof(struct input_event) , &rb , NULL ); @@ -792,6 +791,9 @@ } } } + + default: + ; } return TRUE; } @@ -802,7 +804,7 @@ { /* check if inputev is already assigned in table */ GList *children = GTK_TABLE(table)->children; - for ( children ; children != NULL ; children = g_list_next(children) ) + for ( ; children != NULL ; children = g_list_next(children) ) { GtkTableChild *child = children->data; @@ -1070,7 +1072,7 @@ for ( i = 0 ; i < bindings_num ; i++ ) { GList *children = GTK_TABLE(bind_table)->children; - for ( children ; children != NULL ; children = g_list_next(children) ) + for ( ; children != NULL ; children = g_list_next(children) ) { GtkTableChild *child = children->data; if ( ( (child->top_attach + 1) == GTK_TABLE(bind_table)->nrows ) && @@ -1082,7 +1084,6 @@ GtkWidget *label = g_object_get_data(G_OBJECT(child->widget),"label"); GtkWidget *delbt = g_object_get_data(G_OBJECT(child->widget),"delbt"); GtkTreeModel *combomodel; - GtkTreeIter comboiter; combosas_helper_t *combosas_helper; gchar *input_str; @@ -1235,7 +1236,7 @@ array_actioncode = calloc( table->nrows - 1 , sizeof(gint) ); array_inputevent = calloc( table->nrows - 1 , sizeof(ed_inputevent_t*) ); - for ( children ; children != NULL ; children = g_list_next( children ) ) + for ( ; children != NULL ; children = g_list_next( children ) ) { /* pick information from relevant table cells and put them in arrays */ GtkTableChild *child = children->data;