[asterisk-commits] russell: trunk r38533 - /trunk/pbx/pbx_gtkconsole.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Jul 30 16:16:24 MST 2006


Author: russell
Date: Sun Jul 30 18:16:23 2006
New Revision: 38533

URL: http://svn.digium.com/view/asterisk?rev=38533&view=rev
Log:
suppress some compiler warnings ...

Modified:
    trunk/pbx/pbx_gtkconsole.c

Modified: trunk/pbx/pbx_gtkconsole.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/pbx_gtkconsole.c?rev=38533&r1=38532&r2=38533&view=diff
==============================================================================
--- trunk/pbx/pbx_gtkconsole.c (original)
+++ trunk/pbx/pbx_gtkconsole.c Sun Jul 30 18:16:23 2006
@@ -236,6 +236,8 @@
 			free(module);
 		}
 	}
+
+	return 0;
 }
 
 static void file_ok_sel(GtkWidget *w, GtkFileSelection *fs)
@@ -275,15 +277,15 @@
 static int add_mod(const char *module, const char *description, int usecount, const char *like)
 {
 	char use[10];
-	char *pass[4];
+	const char *pass[4];
 	int row;
 	snprintf(use, sizeof(use), "%d", usecount);
 	pass[0] = module;
 	pass[1] = description;
 	pass[2] = use;
 	pass[3] = NULL;
-	row = gtk_clist_append(GTK_CLIST(modules), pass);
-	gtk_clist_set_row_data(GTK_CLIST(modules), row, module);
+	row = gtk_clist_append(GTK_CLIST(modules), (char **) pass);
+	gtk_clist_set_row_data(GTK_CLIST(modules), row, (char *) module);
 	return 0;	
 }
 



More information about the asterisk-commits mailing list