]> git.ozlabs.org Git - petitboot/blobdiff - discover/yaboot-parser.c
Use static array for parsers
[petitboot] / discover / yaboot-parser.c
index 1000505b9681df66da2bfff4e17709d503c0175e..ace994581311108d4e8231d2c0eff046e48639d9 100644 (file)
@@ -295,7 +295,7 @@ 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,
@@ -318,4 +318,4 @@ static int yaboot_parse(struct discover_context *dc)
        return rc;
 }
 
-define_parser(yaboot, 99, yaboot_parse);
+define_parser(yaboot, yaboot_parse);