Skip to content
Snippets Groups Projects
Commit 1372de49 authored by Russell Bryant's avatar Russell Bryant
Browse files

suppress some compiler warnings ...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent dff27908
No related branches found
No related tags found
No related merge requests found
...@@ -236,6 +236,8 @@ static int reload_module(void *mod) ...@@ -236,6 +236,8 @@ static int reload_module(void *mod)
free(module); free(module);
} }
} }
return 0;
} }
static void file_ok_sel(GtkWidget *w, GtkFileSelection *fs) static void file_ok_sel(GtkWidget *w, GtkFileSelection *fs)
...@@ -275,15 +277,15 @@ static void add_module(void) ...@@ -275,15 +277,15 @@ static void add_module(void)
static int add_mod(const char *module, const char *description, int usecount, const char *like) static int add_mod(const char *module, const char *description, int usecount, const char *like)
{ {
char use[10]; char use[10];
char *pass[4]; const char *pass[4];
int row; int row;
snprintf(use, sizeof(use), "%d", usecount); snprintf(use, sizeof(use), "%d", usecount);
pass[0] = module; pass[0] = module;
pass[1] = description; pass[1] = description;
pass[2] = use; pass[2] = use;
pass[3] = NULL; pass[3] = NULL;
row = gtk_clist_append(GTK_CLIST(modules), pass); row = gtk_clist_append(GTK_CLIST(modules), (char **) pass);
gtk_clist_set_row_data(GTK_CLIST(modules), row, module); gtk_clist_set_row_data(GTK_CLIST(modules), row, (char *) module);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment