diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2016-12-07 11:13:36 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-12-20 15:04:07 +1100 |
commit | 4b06a4645e19830581505a675075773adc0857c2 (patch) | |
tree | 94d77cc95f94432277e401763c65d3d7cbcc37d8 /discover/pxe-parser.c | |
parent | ea8bd5f424a9b01c71e1694bb5b6ffc13e3da4f5 (diff) | |
download | talos-petitboot-4b06a4645e19830581505a675075773adc0857c2.tar.gz talos-petitboot-4b06a4645e19830581505a675075773adc0857c2.zip |
types: shorten boot_status definitions
struct boot_status is a bit misnamed; we report status on things that
aren't just the boot status (eg, discovery).
This change refactors struct boot_status into just struct status. We
give the type enum a name, and shorten the enum values to suit.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/pxe-parser.c')
-rw-r--r-- | discover/pxe-parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discover/pxe-parser.c b/discover/pxe-parser.c index 4352036..221fc30 100644 --- a/discover/pxe-parser.c +++ b/discover/pxe-parser.c @@ -241,7 +241,7 @@ static void pxe_conf_parse_cb(struct load_url_result *result, void *data) { struct conf_context *conf = data; struct device_handler *handler; - struct boot_status status = {0}; + struct status status = {0}; struct pxe_parser_info *info; char *buf = NULL; int len, rc = 0; @@ -279,7 +279,7 @@ static void pxe_conf_parse_cb(struct load_url_result *result, void *data) handler = talloc_parent(conf); device_handler_discover_context_commit(handler, conf->dc); - status.type = BOOT_STATUS_INFO; + status.type = STATUS_INFO; /* * TRANSLATORS: the format specifier in this string in an IP address, * eg. 192.168.1.1 |