summaryrefslogtreecommitdiffstats
path: root/discover/grub2/grub2.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-09-16 10:40:21 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-09-24 13:14:59 +0800
commite492b596187d283cfbd65a098fe1b2d0dafa311e (patch)
tree579217be13139eda894fb3d53bbd5be27fe9f6a9 /discover/grub2/grub2.h
parent5c6c8ea8ca66fe70563143cb226852a10b1a98fb (diff)
downloadtalos-petitboot-e492b596187d283cfbd65a098fe1b2d0dafa311e.tar.gz
talos-petitboot-e492b596187d283cfbd65a098fe1b2d0dafa311e.zip
discover/grub2: Implement multiple-arv variable splitting
If we expand a variable containing word-delimiter chars, we need to create new argv items. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/grub2/grub2.h')
-rw-r--r--discover/grub2/grub2.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/discover/grub2/grub2.h b/discover/grub2/grub2.h
index 60a5734..9da5cee 100644
--- a/discover/grub2/grub2.h
+++ b/discover/grub2/grub2.h
@@ -12,12 +12,10 @@ struct grub2_word {
GRUB2_WORD_VAR,
} type;
union {
- char *text;
- struct {
- const char *name;
- bool split;
- } var;
+ char *text;
+ const char *name;
};
+ bool split;
struct grub2_word *next;
struct grub2_word *last;
struct list_item argv_list;
OpenPOWER on IntegriCloud