aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli-hdt.c
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-03-29 17:37:05 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-03-29 17:37:05 -0700
commit428eb63b88d6100cf8adfda5c146c78fca7ad17b (patch)
tree2469ebc0b530eaaea1f55ea72d5557f25b3f2d5f /com32/hdt/hdt-cli-hdt.c
parente12c50ff3bd41f2a714ca4d69765b7f5c319d07e (diff)
downloadsyslinux.git-428eb63b88d6100cf8adfda5c146c78fca7ad17b.tar.gz
syslinux.git-428eb63b88d6100cf8adfda5c146c78fca7ad17b.tar.xz
syslinux.git-428eb63b88d6100cf8adfda5c146c78fca7ad17b.zip
hdt: Execute default callback only if no module is specified
Impact: 'show' in hdt shows the main summary Previously, 'show bidule' would execute the default callback for the list of show modules. This is confusing. Let's execute it only if no module is specified. Note: same behaviour for 'set'. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/hdt/hdt-cli-hdt.c')
-rw-r--r--com32/hdt/hdt-cli-hdt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/hdt/hdt-cli-hdt.c b/com32/hdt/hdt-cli-hdt.c
index ec9eb481..45d74b71 100644
--- a/com32/hdt/hdt-cli-hdt.c
+++ b/com32/hdt/hdt-cli-hdt.c
@@ -289,7 +289,8 @@ struct cli_module_descr hdt_default_modules = {
struct cli_module_descr hdt_show_modules = {
.modules = list_hdt_show_modules,
- .nb_modules = 10
+ .nb_modules = 10,
+ .default_callback = main_show_summary,
};
struct cli_module_descr hdt_set_modules = {