summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-04-11 08:01:29 +0000
committerBernhard Reutner-Fischer2006-04-11 08:01:29 +0000
commit9460f66e4e55c865a7077a9c3a00da902991dfae (patch)
tree06d33cb7f6be3906e8d1d0c25c619a88d4ad4dcf
parent0b257d411d72b625e11133d856962de3ef729edd (diff)
downloadbusybox-9460f66e4e55c865a7077a9c3a00da902991dfae.zip
busybox-9460f66e4e55c865a7077a9c3a00da902991dfae.tar.gz
- 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
-rw-r--r--miscutils/hdparm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 34b0255..d04bf56 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);