]> git.ozlabs.org Git - petitboot/blobdiff - discover/grub2/grub2.c
discover/grub2: Fixes for bison 3.x
[petitboot] / discover / grub2 / grub2.c
index ffb6ecefcb5ab13a166cbdab8a0092db85a81ccd..5b3009a465f7d43ac8f351c00aac7b1075fbd24b 100644 (file)
@@ -1,5 +1,6 @@
 
 #include <assert.h>
+#include <string.h>
 
 #include <talloc/talloc.h>
 #include <url/url.h>
@@ -9,8 +10,6 @@
 #include <discover/parser-utils.h>
 
 #include "grub2.h"
-#include "parser.h"
-#include "lexer.h"
 
 static const char *const grub2_conf_files[] = {
        "/grub.cfg",
@@ -103,7 +102,7 @@ static int grub2_parse(struct discover_context *dc)
                        continue;
 
                parser = grub2_parser_create(dc);
-               grub2_parser_parse(parser, buf, len);
+               grub2_parser_parse(parser, *filename, buf, len);
                talloc_free(buf);
                talloc_free(parser);
                break;