mirror of
https://github.com/tstellar/bygfoot.git
synced 2025-01-19 02:10:41 +01:00
Fixed some warnings.
This commit is contained in:
parent
729f2a7671
commit
7e7fdc3ca4
@ -493,7 +493,7 @@ file_get_country_files(void)
|
|||||||
GPtrArray *dir_contents = NULL;
|
GPtrArray *dir_contents = NULL;
|
||||||
GPtrArray *country_files_full_path = g_ptr_array_new();
|
GPtrArray *country_files_full_path = g_ptr_array_new();
|
||||||
gchar buf[SMALL];
|
gchar buf[SMALL];
|
||||||
gchar *country_structure;
|
const gchar *country_structure;
|
||||||
|
|
||||||
while(elem != NULL)
|
while(elem != NULL)
|
||||||
{
|
{
|
||||||
|
@ -2660,7 +2660,7 @@ treeview_create_country_list(const GPtrArray *country_list)
|
|||||||
if (g_str_has_prefix(current_country,G_DIR_SEPARATOR_S))
|
if (g_str_has_prefix(current_country,G_DIR_SEPARATOR_S))
|
||||||
{
|
{
|
||||||
// Strip leading directory delimiter
|
// Strip leading directory delimiter
|
||||||
sprintf(current_country, "%.*s", strlen(current_country) - 1, ¤t_country[1]);
|
sprintf(current_country, "%.*s", (gint)strlen(current_country) - 1, ¤t_country[1]);
|
||||||
}
|
}
|
||||||
dir_split_up = g_strsplit_set (current_country, G_DIR_SEPARATOR_S, -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
|
// We only go up to the before last column. We don't want to show the
|
||||||
|
Loading…
Reference in New Issue
Block a user