Make "hd" independently selectable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -28,7 +28,6 @@
|
|||||||
//config:config HD
|
//config:config HD
|
||||||
//config: bool "hd"
|
//config: bool "hd"
|
||||||
//config: default y
|
//config: default y
|
||||||
//config: depends on HEXDUMP
|
|
||||||
//config: help
|
//config: help
|
||||||
//config: hd is an alias to hexdump -C.
|
//config: hd is an alias to hexdump -C.
|
||||||
|
|
||||||
@ -106,7 +105,9 @@ int hexdump_main(int argc, char **argv)
|
|||||||
smallint rdump = 0;
|
smallint rdump = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (ENABLE_HD && !applet_name[2]) { /* we are "hd" */
|
if (ENABLE_HD
|
||||||
|
&& (!ENABLE_HEXDUMP || !applet_name[2])
|
||||||
|
) { /* we are "hd" */
|
||||||
ch = 'C';
|
ch = 'C';
|
||||||
goto hd_applet;
|
goto hd_applet;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user