diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2009-08-13 15:25:47 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2009-08-13 15:25:47 +0200 |
commit | 150589a813b8ab1cbcd7697c2b8f48a6adcab2d2 (patch) | |
tree | d90883ff8243726a8182f3c6644c5490559f704f /config.c | |
parent | d436d19acb8a313f159aa67769dd49f7a369eb17 (diff) |
Store files as a linked list.
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -70,9 +70,6 @@ int cfg_init() { continue; } int file_count = config_setting_length(files); - /* Break if we can't set file count, most likely any following channels will also fail. */ - if(!channel_set_file_count(channel, file_count)) - break; /* Iterate through files. */ for(int j = 0; j < file_count; j++) { const char *filepath; @@ -96,7 +93,7 @@ int cfg_init() { filepath = config_setting_get_string(file); rs_index = 0; } - if(!channel_set_file(channel, j, filepath, rs_index)) { + if(!channel_file_add(channel, filepath, rs_index)) { fprintf(stderr, "Failed to set file #%d (%s) for channel %s.\n", j+1, filepath, name); } } |