X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fyaboot-parser.c;h=59e52b82ac9f0315de5ee62118a063b9da59169d;hp=1000505b9681df66da2bfff4e17709d503c0175e;hb=01ed80939b8ed440390729c524ad875047dbd406;hpb=49ebdeb3ffc0224f3f4bbf1f00beaa5007d38fd5 diff --git a/discover/yaboot-parser.c b/discover/yaboot-parser.c index 1000505..59e52b8 100644 --- a/discover/yaboot-parser.c +++ b/discover/yaboot-parser.c @@ -6,7 +6,7 @@ #include "log/log.h" #include "talloc/talloc.h" -#include "pb-protocol/pb-protocol.h" +#include "types/types.h" #include "parser-conf.h" #include "parser-utils.h" #include "paths.h" @@ -295,12 +295,13 @@ static int yaboot_parse(struct discover_context *dc) conf = talloc_zero(dc, struct conf_context); if (!conf) - return -1; + return 0; conf->dc = dc; conf->global_options = yaboot_global_options, conf_init_global_options(conf); conf->conf_files = yaboot_conf_files, + conf->get_pair = conf_get_pair_equal; conf->process_pair = yaboot_process_pair; conf->finish = yaboot_finish; conf->parser_info = state = talloc_zero(conf, struct yaboot_state); @@ -318,4 +319,4 @@ static int yaboot_parse(struct discover_context *dc) return rc; } -define_parser(yaboot, 99, yaboot_parse); +define_parser(yaboot, yaboot_parse);