summaryrefslogtreecommitdiff
path: root/com32/hdt/hdt-cli-dmi.c
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-03-21 20:01:30 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-03-21 20:01:30 -0700
commit5e2a1c35475b5feec2afc3f5c2269e6e447a1d9c (patch)
tree25e9c6d4930d5e62e77ec70158ab59e9639fdaa3 /com32/hdt/hdt-cli-dmi.c
parent9f91365effab9315033a84402374065d62d13e70 (diff)
downloadsyslinux-5e2a1c35475b5feec2afc3f5c2269e6e447a1d9c.tar.gz
hdt: Convert syslinux module to use the new framework
Impact: Add the concept of default_callback per set of modules Syslinux only implements a default show command. Previously, this was triggered by the `show list' command line. It is not really intuitive and may be confusing (it has another meaning in the DMI module). There is now the concept of default callback, one that would be triggered when only `show', `set', ... is entered in the command line. A common usecase may be that `show' triggers a summary display. Misc.: small fix in the DMI module. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/hdt/hdt-cli-dmi.c')
-rw-r--r--com32/hdt/hdt-cli-dmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/hdt/hdt-cli-dmi.c b/com32/hdt/hdt-cli-dmi.c
index 6fb954e5..5025bd30 100644
--- a/com32/hdt/hdt-cli-dmi.c
+++ b/com32/hdt/hdt-cli-dmi.c
@@ -456,7 +456,7 @@ struct cli_module_descr dmi_show_modules = {
struct cli_mode_descr dmi_mode = {
.mode = DMI_MODE,
- .name = "dmi",
+ .name = CLI_DMI,
.default_modules = NULL,
.show_modules = &dmi_show_modules,
.set_modules = NULL,