diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2016-12-07 11:43:08 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-12-20 15:04:26 +1100 |
commit | c5ae6f4846ca4bd8e13ffa08a293950433f3096c (patch) | |
tree | 51fcbd90ce451b6b09d6162b975d6eb349efcea3 /discover/pxe-parser.c | |
parent | 685fc9d70bb5f09ef345ea0f3d8c3422fd77d611 (diff) | |
download | talos-petitboot-c5ae6f4846ca4bd8e13ffa08a293950433f3096c.tar.gz talos-petitboot-c5ae6f4846ca4bd8e13ffa08a293950433f3096c.zip |
discover: separate status-reporting function from boot() callback
Currently, the device_discover_boot_status function is both used for
internal status updates, as well as the callback passed to boot().
This change splits this into two functions; one for the latter and one
for the former. The latter just has a void * for its first argument, to
match the boot_status_fn type.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/pxe-parser.c b/discover/pxe-parser.c index 221fc30..a044215 100644 --- a/discover/pxe-parser.c +++ b/discover/pxe-parser.c @@ -286,7 +286,7 @@ static void pxe_conf_parse_cb(struct load_url_result *result, void *data) */ status.message = talloc_asprintf(conf, _("pxe: parsed config for %s"), conf->dc->conf_url->host); - device_handler_boot_status(handler, &status); + device_handler_status(handler, &status); talloc_free(buf); out_clean: |