aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-09-21 01:59:15 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-09-21 01:59:15 +0200
commit16714245f9a16ce3725aab079aea7b0d28c6b32f (patch)
tree41edbcd1c279b2baae2d5e5751639076e0a3bfad /miscutils
parent5c6ba6c56f9653488e1d805e727bb06c39ed23fa (diff)
downloadbusybox-w32-16714245f9a16ce3725aab079aea7b0d28c6b32f.tar.gz
busybox-w32-16714245f9a16ce3725aab079aea7b0d28c6b32f.tar.bz2
busybox-w32-16714245f9a16ce3725aab079aea7b0d28c6b32f.zip
add INIT_G()'s. No code changes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/hdparm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index f30e7dec6..a97f3e7b5 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -433,6 +433,7 @@ struct BUG_G_too_big {
433#define hwif_data (G.hwif_data ) 433#define hwif_data (G.hwif_data )
434#define hwif_ctrl (G.hwif_ctrl ) 434#define hwif_ctrl (G.hwif_ctrl )
435#define hwif_irq (G.hwif_irq ) 435#define hwif_irq (G.hwif_irq )
436#define INIT_G() do { } while (0)
436 437
437 438
438/* Busybox messages and functions */ 439/* Busybox messages and functions */
@@ -2059,6 +2060,8 @@ int hdparm_main(int argc, char **argv)
2059 int c; 2060 int c;
2060 int flagcount = 0; 2061 int flagcount = 0;
2061 2062
2063 INIT_G();
2064
2062 while ((c = getopt(argc, argv, hdparm_options)) >= 0) { 2065 while ((c = getopt(argc, argv, hdparm_options)) >= 0) {
2063 flagcount++; 2066 flagcount++;
2064 IF_FEATURE_HDPARM_GET_IDENTITY(get_IDentity |= (c == 'I')); 2067 IF_FEATURE_HDPARM_GET_IDENTITY(get_IDentity |= (c == 'I'));