This commit is contained in:
jsorg71 2007-10-27 07:02:28 +00:00
parent d3fa8fd6f6
commit d0c70a89b2

View File

@ -65,7 +65,7 @@ file_read_sections(int fd, struct list* names)
} }
else if (c == ']') else if (c == ']')
{ {
list_add_item(names, (long)g_strdup(text)); list_add_item(names, (tbus)g_strdup(text));
in_it = 0; in_it = 0;
in_it_index = 0; in_it_index = 0;
g_memset(text, 0, 256); g_memset(text, 0, 256);
@ -238,8 +238,8 @@ file_read_section(int fd, const char* section, struct list* names,
if (g_strlen(text) > 0) if (g_strlen(text) > 0)
{ {
file_split_name_value(text, name, value); file_split_name_value(text, name, value);
list_add_item(names, (long)g_strdup(name)); list_add_item(names, (tbus)g_strdup(name));
list_add_item(values, (long)g_strdup(value)); list_add_item(values, (tbus)g_strdup(value));
} }
} }
free_stream(s); free_stream(s);