diff options
Diffstat (limited to 'channel.c')
-rw-r--r-- | channel.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -13,7 +13,7 @@ void channel_init() { channel_count = 0; } -struct channel_t *channel_add(const char *name, const char *xmlpath) { +struct channel_t *channel_add(const char *name) { channels = realloc(channels, ++channel_count * sizeof(struct channel_t)); if(!channels) { char *error = strerror(errno); @@ -22,7 +22,6 @@ struct channel_t *channel_add(const char *name, const char *xmlpath) { } struct channel_t *channel = &channels[channel_count-1]; channel->name = strdup(name); - channel->xmlpath = strdup(xmlpath); channel->files = NULL; memset(channel->hours, 0, 24*4 * sizeof(unsigned long)); return channel; @@ -55,7 +54,6 @@ struct channel_t *channel_get(int index) { void channel_free() { for(int i = 0; i < channel_count; i++) { free(channels[i].name); - free(channels[i].xmlpath); struct channel_file_t *file = channels[i].files; while(file) { struct channel_file_t *next = file->next; |