aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-04-21 18:18:48 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-04-21 18:18:48 +0200
commit47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5 (patch)
tree05127e986021176649f2dd660a92ef8b8e107e92 /miscutils
parente6a2f4cc5a47d3022bdf5ca2cacbaa5a8c5baf7a (diff)
downloadbusybox-w32-47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5.tar.gz
busybox-w32-47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5.tar.bz2
busybox-w32-47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5.zip
*: add most of the required setup_common_bufsiz() calls
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/crond.c1
-rw-r--r--miscutils/dc.c1
-rw-r--r--miscutils/hdparm.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 8536d43c5..f96c96ee7 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -143,6 +143,7 @@ struct globals {
143} FIX_ALIASING; 143} FIX_ALIASING;
144#define G (*(struct globals*)bb_common_bufsiz1) 144#define G (*(struct globals*)bb_common_bufsiz1)
145#define INIT_G() do { \ 145#define INIT_G() do { \
146 setup_common_bufsiz(); \
146 G.log_level = 8; \ 147 G.log_level = 8; \
147 G.crontab_dir_name = CRONTABS; \ 148 G.crontab_dir_name = CRONTABS; \
148} while (0) 149} while (0)
diff --git a/miscutils/dc.c b/miscutils/dc.c
index 3fbb89f5b..4d92bc3d0 100644
--- a/miscutils/dc.c
+++ b/miscutils/dc.c
@@ -53,6 +53,7 @@ enum { STACK_SIZE = (COMMON_BUFSIZE - offsetof(struct globals, stack)) / sizeof(
53#define base (G.base ) 53#define base (G.base )
54#define stack (G.stack ) 54#define stack (G.stack )
55#define INIT_G() do { \ 55#define INIT_G() do { \
56 setup_common_bufsiz(); \
56 base = 10; \ 57 base = 10; \
57} while (0) 58} while (0)
58 59
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 9e141de2f..b4c5876d4 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -432,6 +432,7 @@ struct globals {
432#define hwif_ctrl (G.hwif_ctrl ) 432#define hwif_ctrl (G.hwif_ctrl )
433#define hwif_irq (G.hwif_irq ) 433#define hwif_irq (G.hwif_irq )
434#define INIT_G() do { \ 434#define INIT_G() do { \
435 setup_common_bufsiz(); \
435 BUILD_BUG_ON(sizeof(G) > COMMON_BUFSIZE); \ 436 BUILD_BUG_ON(sizeof(G) > COMMON_BUFSIZE); \
436} while (0) 437} while (0)
437 438