diff options
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 39 |
1 files changed, 0 insertions, 39 deletions
@@ -108,45 +108,6 @@ int match_keyword(char *word) return -1; } -/* - * conf_line reads one logical line from the conffile. - * It skips comments and continues until it finds a line that starts - * with a non blank/comment. This character is pushed back for the next call - * A doubly linked list of words is returned. - * the first word will be a keyword. Other words will have had quotes removed. - */ - -char *conf_line(FILE *file) -{ - char *w; - char *list; - - w = conf_word(file, 1); - if (w == NULL) return NULL; - - list = dl_strdup(w); - free(w); - dl_init(list); - - while ((w = conf_word(file,0))){ - char *w2 = dl_strdup(w); - free(w); - dl_add(list, w2); - } -/* printf("got a line\n");*/ - return list; -} - -void free_line(char *line) -{ - char *w; - for (w=dl_next(line); w != line; w=dl_next(line)) { - dl_del(w); - dl_free(w); - } - dl_free(line); -} - struct conf_dev { struct conf_dev *next; char *name; |