aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-04-22 18:09:21 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-04-22 18:09:21 +0200
commit3e134ebf6afb5552b3619f98f6a2ffa01a07eebb (patch)
tree6cafe5f8e63a88e4ab7b2a449dc62dd3afb3c8bf /util-linux
parent663d1da1e68b15397c00d6a094f78c2cf08358ea (diff)
downloadbusybox-w32-3e134ebf6afb5552b3619f98f6a2ffa01a07eebb.tar.gz
busybox-w32-3e134ebf6afb5552b3619f98f6a2ffa01a07eebb.tar.bz2
busybox-w32-3e134ebf6afb5552b3619f98f6a2ffa01a07eebb.zip
*: slap on a few ALIGN1/2s where appropriate
The result of looking at "grep -F -B2 '*fill*' busybox_unstripped.map" text data bss dec hex filename 829901 4086 1904 835891 cc133 busybox_before 829665 4086 1904 835655 cc047 busybox Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fatattr.c2
-rw-r--r--util-linux/mount.c6
-rw-r--r--util-linux/nsenter.c2
-rw-r--r--util-linux/unshare.c2
-rw-r--r--util-linux/volume_id/bcache.c2
-rw-r--r--util-linux/volume_id/luks.c2
6 files changed, 8 insertions, 8 deletions
diff --git a/util-linux/fatattr.c b/util-linux/fatattr.c
index 5d933874a..6dca24a73 100644
--- a/util-linux/fatattr.c
+++ b/util-linux/fatattr.c
@@ -42,7 +42,7 @@
42 * Extra space at the end is a hack to print space separator in file listing. 42 * Extra space at the end is a hack to print space separator in file listing.
43 * Let's hope no one ever passes space as an option char :) 43 * Let's hope no one ever passes space as an option char :)
44 */ 44 */
45static const char bit_to_char[] = "rhsvda67 "; 45static const char bit_to_char[] ALIGN1 = "rhsvda67 ";
46 46
47static inline unsigned long get_flag(char c) 47static inline unsigned long get_flag(char c)
48{ 48{
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 244f4fa27..c76f6ef61 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -377,7 +377,7 @@ static const int32_t mount_options[] = {
377 /* "remount" */ MS_REMOUNT // action flag 377 /* "remount" */ MS_REMOUNT // action flag
378}; 378};
379 379
380static const char mount_option_str[] = 380static const char mount_option_str[] ALIGN1 =
381 IF_FEATURE_MOUNT_LOOP( 381 IF_FEATURE_MOUNT_LOOP(
382 "loop\0" 382 "loop\0"
383 ) 383 )
@@ -1003,7 +1003,7 @@ enum {
1003# define EDQUOT ENOSPC 1003# define EDQUOT ENOSPC
1004#endif 1004#endif
1005/* Convert each NFSERR_BLAH into EBLAH */ 1005/* Convert each NFSERR_BLAH into EBLAH */
1006static const uint8_t nfs_err_stat[] = { 1006static const uint8_t nfs_err_stat[] ALIGN1 = {
1007 1, 2, 5, 6, 13, 17, 1007 1, 2, 5, 6, 13, 17,
1008 19, 20, 21, 22, 27, 28, 1008 19, 20, 21, 22, 27, 28,
1009 30, 63, 66, 69, 70, 71 1009 30, 63, 66, 69, 70, 71
@@ -1016,7 +1016,7 @@ typedef uint8_t nfs_err_type;
1016#else 1016#else
1017typedef uint16_t nfs_err_type; 1017typedef uint16_t nfs_err_type;
1018#endif 1018#endif
1019static const nfs_err_type nfs_err_errnum[] = { 1019static const nfs_err_type nfs_err_errnum[] ALIGN2 = {
1020 EPERM , ENOENT , EIO , ENXIO , EACCES, EEXIST, 1020 EPERM , ENOENT , EIO , ENXIO , EACCES, EEXIST,
1021 ENODEV, ENOTDIR , EISDIR , EINVAL, EFBIG , ENOSPC, 1021 ENODEV, ENOTDIR , EISDIR , EINVAL, EFBIG , ENOSPC,
1022 EROFS , ENAMETOOLONG, ENOTEMPTY, EDQUOT, ESTALE, EREMOTE 1022 EROFS , ENAMETOOLONG, ENOTEMPTY, EDQUOT, ESTALE, EREMOTE
diff --git a/util-linux/nsenter.c b/util-linux/nsenter.c
index b08b3dae7..6834292da 100644
--- a/util-linux/nsenter.c
+++ b/util-linux/nsenter.c
@@ -128,7 +128,7 @@ static const struct namespace_descr ns_list[] = {
128/* 128/*
129 * Upstream nsenter doesn't support the short option for --preserve-credentials 129 * Upstream nsenter doesn't support the short option for --preserve-credentials
130 */ 130 */
131static const char opt_str[] = "U::i::u::n::p::m::""t+S+G+r::w::F"; 131static const char opt_str[] ALIGN1 = "U::i::u::n::p::m::""t+S+G+r::w::F";
132 132
133#if ENABLE_FEATURE_NSENTER_LONG_OPTS 133#if ENABLE_FEATURE_NSENTER_LONG_OPTS
134static const char nsenter_longopts[] ALIGN1 = 134static const char nsenter_longopts[] ALIGN1 =
diff --git a/util-linux/unshare.c b/util-linux/unshare.c
index d05cfdb6c..fa7086add 100644
--- a/util-linux/unshare.c
+++ b/util-linux/unshare.c
@@ -137,7 +137,7 @@ static const struct namespace_descr ns_list[] = {
137 * we are forced to use "fake" letters for them. 137 * we are forced to use "fake" letters for them.
138 * '+': stop at first non-option. 138 * '+': stop at first non-option.
139 */ 139 */
140static const char opt_str[] = "+muinpU""fr""\xfd::""\xfe:""\xff:"; 140static const char opt_str[] ALIGN1 = "+muinpU""fr""\xfd::""\xfe:""\xff:";
141static const char unshare_longopts[] ALIGN1 = 141static const char unshare_longopts[] ALIGN1 =
142 "mount\0" Optional_argument "\xf0" 142 "mount\0" Optional_argument "\xf0"
143 "uts\0" Optional_argument "\xf1" 143 "uts\0" Optional_argument "\xf1"
diff --git a/util-linux/volume_id/bcache.c b/util-linux/volume_id/bcache.c
index 648e44de5..fd40eb081 100644
--- a/util-linux/volume_id/bcache.c
+++ b/util-linux/volume_id/bcache.c
@@ -24,7 +24,7 @@
24#define SB_LABEL_SIZE 32 24#define SB_LABEL_SIZE 32
25#define SB_JOURNAL_BUCKETS 256U 25#define SB_JOURNAL_BUCKETS 256U
26 26
27static const char bcache_magic[] = { 27static const char bcache_magic[] ALIGN1 = {
28 0xc6, 0x85, 0x73, 0xf6, 0x4e, 0x1a, 0x45, 0xca, 28 0xc6, 0x85, 0x73, 0xf6, 0x4e, 0x1a, 0x45, 0xca,
29 0x82, 0x65, 0xf5, 0x7f, 0x48, 0xba, 0x6d, 0x81 29 0x82, 0x65, 0xf5, 0x7f, 0x48, 0xba, 0x6d, 0x81
30}; 30};
diff --git a/util-linux/volume_id/luks.c b/util-linux/volume_id/luks.c
index 42bf87659..21cb26f51 100644
--- a/util-linux/volume_id/luks.c
+++ b/util-linux/volume_id/luks.c
@@ -40,7 +40,7 @@
40#define LUKS_SALTSIZE 32 40#define LUKS_SALTSIZE 32
41#define LUKS_NUMKEYS 8 41#define LUKS_NUMKEYS 8
42 42
43static const uint8_t LUKS_MAGIC[] = { 'L','U','K','S', 0xba, 0xbe }; 43static const uint8_t LUKS_MAGIC[] ALIGN1 = { 'L','U','K','S', 0xba, 0xbe };
44 44
45struct luks_phdr { 45struct luks_phdr {
46 uint8_t magic[LUKS_MAGIC_L]; 46 uint8_t magic[LUKS_MAGIC_L];