aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-11 08:01:29 +0000
committerGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-11 08:01:29 +0000
commit9460f66e4e55c865a7077a9c3a00da902991dfae (patch)
tree06d33cb7f6be3906e8d1d0c25c619a88d4ad4dcf /miscutils
parent0b257d411d72b625e11133d856962de3ef729edd (diff)
downloadbusybox-9460f66e4e55c865a7077a9c3a00da902991dfae.tar.gz
busybox-9460f66e4e55c865a7077a9c3a00da902991dfae.tar.bz2
- tweak visibility of label expected_hwif_error as it's only needed for
CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF or CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/hdparm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 34b02552f..d04bf56f6 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -2772,8 +2772,10 @@ missing_arg_error:
p = *argv++, --argc;
else
#endif /* CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF */
+#if defined CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF || defined CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF
expected_hwif_error:
bb_error_msg_and_die("expected hwif value"); /* "expected hwif_irq" */
+#endif /* CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF || CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF */
#ifdef CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF
sscanf(p, "%i", &hwif_irq);