aboutsummaryrefslogtreecommitdiff
path: root/networking/ifconfig.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-11-30 14:58:02 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-11-30 14:58:02 +0100
commit6cc4962b60d451e918e338ccca98afda99f49f6e (patch)
treeaf98468492c063ea74d53307678786339447cb5e /networking/ifconfig.c
parent965b795b87c59ed45cc7f16a62301dbae65b1627 (diff)
downloadbusybox-w32-6cc4962b60d451e918e338ccca98afda99f49f6e.tar.gz
busybox-w32-6cc4962b60d451e918e338ccca98afda99f49f6e.tar.bz2
busybox-w32-6cc4962b60d451e918e338ccca98afda99f49f6e.zip
decrease padding: gcc-9.3.1 slaps 32-byte alignment on arrays willy-nilly
text data bss dec hex filename 1021236 559 5052 1026847 fab1f busybox_old 1021120 559 5052 1026731 faaab busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ifconfig.c')
-rw-r--r--networking/ifconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c
index 3c9a2dfb3..c3e448be0 100644
--- a/networking/ifconfig.c
+++ b/networking/ifconfig.c
@@ -247,7 +247,7 @@ struct options {
247 * Set up the tables. Warning! They must have corresponding order! 247 * Set up the tables. Warning! They must have corresponding order!
248 */ 248 */
249 249
250static const struct arg1opt Arg1Opt[] = { 250static const struct arg1opt Arg1Opt[] ALIGN_PTR = {
251 { "SIFMETRIC", SIOCSIFMETRIC, ifreq_offsetof(ifr_metric) }, 251 { "SIFMETRIC", SIOCSIFMETRIC, ifreq_offsetof(ifr_metric) },
252 { "SIFMTU", SIOCSIFMTU, ifreq_offsetof(ifr_mtu) }, 252 { "SIFMTU", SIOCSIFMTU, ifreq_offsetof(ifr_mtu) },
253 { "SIFTXQLEN", SIOCSIFTXQLEN, ifreq_offsetof(ifr_qlen) }, 253 { "SIFTXQLEN", SIOCSIFTXQLEN, ifreq_offsetof(ifr_qlen) },
@@ -277,7 +277,7 @@ static const struct arg1opt Arg1Opt[] = {
277 { "SIFADDR", SIOCSIFADDR, ifreq_offsetof(ifr_addr) }, 277 { "SIFADDR", SIOCSIFADDR, ifreq_offsetof(ifr_addr) },
278}; 278};
279 279
280static const struct options OptArray[] = { 280static const struct options OptArray[] ALIGN_PTR = {
281 { "metric", N_ARG, ARG_METRIC, 0 }, 281 { "metric", N_ARG, ARG_METRIC, 0 },
282 { "mtu", N_ARG, ARG_MTU, 0 }, 282 { "mtu", N_ARG, ARG_MTU, 0 },
283 { "txqueuelen", N_ARG, ARG_TXQUEUELEN, 0 }, 283 { "txqueuelen", N_ARG, ARG_TXQUEUELEN, 0 },