aboutsummaryrefslogtreecommitdiffstats
path: root/pbx/pbx_gtkconsole.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-30 23:16:23 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-30 23:16:23 +0000
commita26d8b53510781aad4d312e632da49fdc3e01cfd (patch)
treeef68c76888ac9c4449e6a4d9ce57b58020164277 /pbx/pbx_gtkconsole.c
parent8c9bc54ab58d16338838145018ed0acecde971ca (diff)
suppress some compiler warnings ...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38533 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/pbx_gtkconsole.c')
-rw-r--r--pbx/pbx_gtkconsole.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/pbx/pbx_gtkconsole.c b/pbx/pbx_gtkconsole.c
index 1bfadb7d3..9f9a1899e 100644
--- a/pbx/pbx_gtkconsole.c
+++ b/pbx/pbx_gtkconsole.c
@@ -236,6 +236,8 @@ static int reload_module(void *mod)
free(module);
}
}
+
+ return 0;
}
static void file_ok_sel(GtkWidget *w, GtkFileSelection *fs)
@@ -275,15 +277,15 @@ static void add_module(void)
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;
}