Fixed some warnings.

This commit is contained in:
gyboth 2008-12-16 13:59:36 +00:00
parent 729f2a7671
commit 7e7fdc3ca4
2 changed files with 2 additions and 2 deletions

View File

@ -493,7 +493,7 @@ file_get_country_files(void)
GPtrArray *dir_contents = NULL;
GPtrArray *country_files_full_path = g_ptr_array_new();
gchar buf[SMALL];
gchar *country_structure;
const gchar *country_structure;
while(elem != NULL)
{

View File

@ -2660,7 +2660,7 @@ treeview_create_country_list(const GPtrArray *country_list)
if (g_str_has_prefix(current_country,G_DIR_SEPARATOR_S))
{
// Strip leading directory delimiter
sprintf(current_country, "%.*s", strlen(current_country) - 1, &current_country[1]);
sprintf(current_country, "%.*s", (gint)strlen(current_country) - 1, &current_country[1]);
}
dir_split_up = g_strsplit_set (current_country, G_DIR_SEPARATOR_S, -1);
// We only go up to the before last column. We don't want to show the