Skip to content

Commit

Permalink
discover/grub2: make statements_execute non-static
Browse files Browse the repository at this point in the history
We want to execute newly-parsed statements, so expose
statements_execute() to the rest of the grub2 parser code.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
  • Loading branch information
jk-ozlabs committed Nov 29, 2019
1 parent 2c132eb commit 9711179
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions discover/grub2/grub2.h
Expand Up @@ -165,6 +165,9 @@ void word_append(struct grub2_word *w1, struct grub2_word *w2);
/* script interface */
void script_execute(struct grub2_script *script);

int statements_execute(struct grub2_script *script,
struct grub2_statements *stmts);

int statement_simple_execute(struct grub2_script *script,
struct grub2_statement *statement);
int statement_block_execute(struct grub2_script *script,
Expand Down
2 changes: 1 addition & 1 deletion discover/grub2/script.c
Expand Up @@ -229,7 +229,7 @@ static void process_expansions(struct grub2_script *script,
argv->argc--;
}

static int statements_execute(struct grub2_script *script,
int statements_execute(struct grub2_script *script,
struct grub2_statements *stmts)
{
struct grub2_statement *stmt;
Expand Down

0 comments on commit 9711179

Please sign in to comment.