config-parser: Make weston_config_parse() tkae a file name

Take a basename of the config file to parse instead of an fd.
This commit is contained in:
Kristian Høgsberg
2013-09-21 23:02:31 -07:00
parent 81c2c2eb5e
commit 1abe0486bb
8 changed files with 22 additions and 36 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ run_test(const char *text)
len = write(fd, text, strlen(text));
assert(len == (int) strlen(text));
config = weston_config_parse(fd);
config = weston_config_parse(file);
close(fd);
unlink(file);