diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
commit | 6ca409e0e4c198fe3081346eebbae3f068fe605a (patch) | |
tree | 060cb05d99220a1eda399194d1209c269f0e8cd8 /networking/udhcp | |
parent | 4185548984357df91311f30c8e43d95f33922576 (diff) | |
download | busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2 busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip |
trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount
of padding (unfortunately, needs hand editing ATM).
*: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts
size saving: 0.5k
Diffstat (limited to 'networking/udhcp')
-rw-r--r-- | networking/udhcp/common.c | 4 | ||||
-rw-r--r-- | networking/udhcp/dhcpc.c | 2 | ||||
-rw-r--r-- | networking/udhcp/dumpleases.c | 2 | ||||
-rw-r--r-- | networking/udhcp/options.c | 2 |
4 files changed, 6 insertions, 4 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index 59c015575..a47bbafff 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c | |||
@@ -6,4 +6,6 @@ | |||
6 | 6 | ||
7 | #include "common.h" | 7 | #include "common.h" |
8 | 8 | ||
9 | const uint8_t MAC_BCAST_ADDR[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; | 9 | const uint8_t MAC_BCAST_ADDR[6] ALIGN2 = { |
10 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff | ||
11 | }; | ||
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index efe208814..0e89c3cae 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -180,7 +180,7 @@ int udhcpc_main(int argc, char **argv) | |||
180 | OPT_v = 1 << 17, | 180 | OPT_v = 1 << 17, |
181 | }; | 181 | }; |
182 | #if ENABLE_GETOPT_LONG | 182 | #if ENABLE_GETOPT_LONG |
183 | static const char udhcpc_longopts[] = | 183 | static const char udhcpc_longopts[] ALIGN1 = |
184 | "clientid\0" Required_argument "c" | 184 | "clientid\0" Required_argument "c" |
185 | "clientid-none\0" No_argument "C" | 185 | "clientid-none\0" No_argument "C" |
186 | "vendorclass\0" Required_argument "V" | 186 | "vendorclass\0" Required_argument "V" |
diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c index f9f923124..a0765be79 100644 --- a/networking/udhcp/dumpleases.c +++ b/networking/udhcp/dumpleases.c | |||
@@ -24,7 +24,7 @@ int dumpleases_main(int argc, char **argv) | |||
24 | OPT_f = 0x4, // -f | 24 | OPT_f = 0x4, // -f |
25 | }; | 25 | }; |
26 | #if ENABLE_GETOPT_LONG | 26 | #if ENABLE_GETOPT_LONG |
27 | static const char dumpleases_longopts[] = | 27 | static const char dumpleases_longopts[] ALIGN1 = |
28 | "absolute\0" No_argument "a" | 28 | "absolute\0" No_argument "a" |
29 | "remaining\0" No_argument "r" | 29 | "remaining\0" No_argument "r" |
30 | "file\0" Required_argument "f" | 30 | "file\0" Required_argument "f" |
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c index a58adb9a9..3168fc69a 100644 --- a/networking/udhcp/options.c +++ b/networking/udhcp/options.c | |||
@@ -52,7 +52,7 @@ const struct dhcp_option dhcp_options[] = { | |||
52 | }; | 52 | }; |
53 | 53 | ||
54 | /* Lengths of the different option types */ | 54 | /* Lengths of the different option types */ |
55 | const unsigned char option_lengths[] = { | 55 | const unsigned char option_lengths[] ALIGN1 = { |
56 | [OPTION_IP] = 4, | 56 | [OPTION_IP] = 4, |
57 | [OPTION_IP_PAIR] = 8, | 57 | [OPTION_IP_PAIR] = 8, |
58 | [OPTION_BOOLEAN] = 1, | 58 | [OPTION_BOOLEAN] = 1, |