aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2022-02-06 20:07:12 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2022-02-06 20:07:12 +0100
commit987be932ed3cbea56b68bbe85649191c13b66015 (patch)
treee6bee7fb9dca0402f5ec97807a64c1c9938dd854
parentca466f385ac985a8b3491daa9f326dc480cdee70 (diff)
downloadbusybox-w32-987be932ed3cbea56b68bbe85649191c13b66015.tar.gz
busybox-w32-987be932ed3cbea56b68bbe85649191c13b66015.tar.bz2
busybox-w32-987be932ed3cbea56b68bbe85649191c13b66015.zip
*: slap on a few ALIGN_PTR where appropriate
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--coreutils/test.c2
-rw-r--r--e2fsprogs/fsck.c2
-rw-r--r--libbb/getopt32.c2
-rw-r--r--miscutils/devfsd.c4
-rw-r--r--modutils/modutils-24.c4
-rw-r--r--networking/inetd.c2
-rw-r--r--procps/nmeter.c2
-rw-r--r--selinux/setenforce.c2
-rw-r--r--shell/hush.c10
9 files changed, 15 insertions, 15 deletions
diff --git a/coreutils/test.c b/coreutils/test.c
index a914c7490..840a0daaf 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -242,7 +242,7 @@ int depth;
242 depth--; \ 242 depth--; \
243 return __res; \ 243 return __res; \
244} while (0) 244} while (0)
245static const char *const TOKSTR[] = { 245static const char *const TOKSTR[] ALIGN_PTR = {
246 "EOI", 246 "EOI",
247 "FILRD", 247 "FILRD",
248 "FILWR", 248 "FILWR",
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c
index 96c1e51e0..028f8a803 100644
--- a/e2fsprogs/fsck.c
+++ b/e2fsprogs/fsck.c
@@ -190,7 +190,7 @@ struct globals {
190 * Required for the uber-silly devfs /dev/ide/host1/bus2/target3/lun3 190 * Required for the uber-silly devfs /dev/ide/host1/bus2/target3/lun3
191 * pathames. 191 * pathames.
192 */ 192 */
193static const char *const devfs_hier[] = { 193static const char *const devfs_hier[] ALIGN_PTR = {
194 "host", "bus", "target", "lun", NULL 194 "host", "bus", "target", "lun", NULL
195}; 195};
196#endif 196#endif
diff --git a/libbb/getopt32.c b/libbb/getopt32.c
index 5ab4d66f1..e861d0567 100644
--- a/libbb/getopt32.c
+++ b/libbb/getopt32.c
@@ -296,7 +296,7 @@ Special characters:
296 296
297/* Code here assumes that 'unsigned' is at least 32 bits wide */ 297/* Code here assumes that 'unsigned' is at least 32 bits wide */
298 298
299const char *const bb_argv_dash[] = { "-", NULL }; 299const char *const bb_argv_dash[] ALIGN_PTR = { "-", NULL };
300 300
301enum { 301enum {
302 PARAM_STRING, 302 PARAM_STRING,
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c
index 839d00fd0..fb9ebcf60 100644
--- a/miscutils/devfsd.c
+++ b/miscutils/devfsd.c
@@ -928,7 +928,7 @@ static void action_compat(const struct devfsd_notify_struct *info, unsigned int
928 unsigned int i; 928 unsigned int i;
929 char rewind_; 929 char rewind_;
930 /* 1 to 5 "scsi/" , 6 to 9 "ide/host" */ 930 /* 1 to 5 "scsi/" , 6 to 9 "ide/host" */
931 static const char *const fmt[] = { 931 static const char *const fmt[] ALIGN_PTR = {
932 NULL , 932 NULL ,
933 "sg/c%db%dt%du%d", /* scsi/generic */ 933 "sg/c%db%dt%du%d", /* scsi/generic */
934 "sd/c%db%dt%du%d", /* scsi/disc */ 934 "sd/c%db%dt%du%d", /* scsi/disc */
@@ -1468,7 +1468,7 @@ const char *get_old_name(const char *devname, unsigned int namelen,
1468 const char *pty1; 1468 const char *pty1;
1469 const char *pty2; 1469 const char *pty2;
1470 /* 1 to 5 "scsi/" , 6 to 9 "ide/host", 10 sbp/, 11 vcc/, 12 pty/ */ 1470 /* 1 to 5 "scsi/" , 6 to 9 "ide/host", 10 sbp/, 11 vcc/, 12 pty/ */
1471 static const char *const fmt[] = { 1471 static const char *const fmt[] ALIGN_PTR = {
1472 NULL , 1472 NULL ,
1473 "sg%u", /* scsi/generic */ 1473 "sg%u", /* scsi/generic */
1474 NULL, /* scsi/disc */ 1474 NULL, /* scsi/disc */
diff --git a/modutils/modutils-24.c b/modutils/modutils-24.c
index ac8632481..d0bc2a6ef 100644
--- a/modutils/modutils-24.c
+++ b/modutils/modutils-24.c
@@ -3458,7 +3458,7 @@ static int obj_load_progbits(char *image, size_t image_size, struct obj_file *f,
3458 3458
3459static void hide_special_symbols(struct obj_file *f) 3459static void hide_special_symbols(struct obj_file *f)
3460{ 3460{
3461 static const char *const specials[] = { 3461 static const char *const specials[] ALIGN_PTR = {
3462 SPFX "cleanup_module", 3462 SPFX "cleanup_module",
3463 SPFX "init_module", 3463 SPFX "init_module",
3464 SPFX "kernel_version", 3464 SPFX "kernel_version",
@@ -3484,7 +3484,7 @@ static int obj_gpl_license(struct obj_file *f, const char **license)
3484 * linux/include/linux/module.h. Checking for leading "GPL" will not 3484 * linux/include/linux/module.h. Checking for leading "GPL" will not
3485 * work, somebody will use "GPL sucks, this is proprietary". 3485 * work, somebody will use "GPL sucks, this is proprietary".
3486 */ 3486 */
3487 static const char *const gpl_licenses[] = { 3487 static const char *const gpl_licenses[] ALIGN_PTR = {
3488 "GPL", 3488 "GPL",
3489 "GPL v2", 3489 "GPL v2",
3490 "GPL and additional rights", 3490 "GPL and additional rights",
diff --git a/networking/inetd.c b/networking/inetd.c
index e71be51c3..fb2fbe323 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -1538,7 +1538,7 @@ int inetd_main(int argc UNUSED_PARAM, char **argv)
1538#if ENABLE_FEATURE_INETD_SUPPORT_BUILTIN_ECHO \ 1538#if ENABLE_FEATURE_INETD_SUPPORT_BUILTIN_ECHO \
1539 || ENABLE_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD 1539 || ENABLE_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD
1540# if !BB_MMU 1540# if !BB_MMU
1541static const char *const cat_args[] = { "cat", NULL }; 1541static const char *const cat_args[] ALIGN_PTR = { "cat", NULL };
1542# endif 1542# endif
1543#endif 1543#endif
1544 1544
diff --git a/procps/nmeter.c b/procps/nmeter.c
index 2310e9844..088d366bf 100644
--- a/procps/nmeter.c
+++ b/procps/nmeter.c
@@ -70,7 +70,7 @@ typedef struct proc_file {
70 smallint last_gen; 70 smallint last_gen;
71} proc_file; 71} proc_file;
72 72
73static const char *const proc_name[] = { 73static const char *const proc_name[] ALIGN_PTR = {
74 "stat", // Must match the order of proc_file's! 74 "stat", // Must match the order of proc_file's!
75 "loadavg", 75 "loadavg",
76 "net/dev", 76 "net/dev",
diff --git a/selinux/setenforce.c b/selinux/setenforce.c
index 996034f8e..2267be451 100644
--- a/selinux/setenforce.c
+++ b/selinux/setenforce.c
@@ -26,7 +26,7 @@
26/* These strings are arranged so that odd ones 26/* These strings are arranged so that odd ones
27 * result in security_setenforce(1) being done, 27 * result in security_setenforce(1) being done,
28 * the rest will do security_setenforce(0) */ 28 * the rest will do security_setenforce(0) */
29static const char *const setenforce_cmd[] = { 29static const char *const setenforce_cmd[] ALIGN_PTR = {
30 "0", 30 "0",
31 "1", 31 "1",
32 "permissive", 32 "permissive",
diff --git a/shell/hush.c b/shell/hush.c
index 6dc2ecaac..ae81f0da5 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -564,7 +564,7 @@ enum {
564#define NULL_O_STRING { NULL } 564#define NULL_O_STRING { NULL }
565 565
566#ifndef debug_printf_parse 566#ifndef debug_printf_parse
567static const char *const assignment_flag[] = { 567static const char *const assignment_flag[] ALIGN_PTR = {
568 "MAYBE_ASSIGNMENT", 568 "MAYBE_ASSIGNMENT",
569 "DEFINITELY_ASSIGNMENT", 569 "DEFINITELY_ASSIGNMENT",
570 "NOT_ASSIGNMENT", 570 "NOT_ASSIGNMENT",
@@ -3682,7 +3682,7 @@ static void free_pipe_list(struct pipe *pi)
3682#ifndef debug_print_tree 3682#ifndef debug_print_tree
3683static void debug_print_tree(struct pipe *pi, int lvl) 3683static void debug_print_tree(struct pipe *pi, int lvl)
3684{ 3684{
3685 static const char *const PIPE[] = { 3685 static const char *const PIPE[] ALIGN_PTR = {
3686 [PIPE_SEQ] = "SEQ", 3686 [PIPE_SEQ] = "SEQ",
3687 [PIPE_AND] = "AND", 3687 [PIPE_AND] = "AND",
3688 [PIPE_OR ] = "OR" , 3688 [PIPE_OR ] = "OR" ,
@@ -3717,7 +3717,7 @@ static void debug_print_tree(struct pipe *pi, int lvl)
3717 [RES_XXXX ] = "XXXX" , 3717 [RES_XXXX ] = "XXXX" ,
3718 [RES_SNTX ] = "SNTX" , 3718 [RES_SNTX ] = "SNTX" ,
3719 }; 3719 };
3720 static const char *const CMDTYPE[] = { 3720 static const char *const CMDTYPE[] ALIGN_PTR = {
3721 "{}", 3721 "{}",
3722 "()", 3722 "()",
3723 "[noglob]", 3723 "[noglob]",
@@ -7659,7 +7659,7 @@ static int generate_stream_from_string(const char *s, pid_t *pid_p)
7659 if (is_prefixed_with(s, "trap") 7659 if (is_prefixed_with(s, "trap")
7660 && skip_whitespace(s + 4)[0] == '\0' 7660 && skip_whitespace(s + 4)[0] == '\0'
7661 ) { 7661 ) {
7662 static const char *const argv[] = { NULL, NULL }; 7662 static const char *const argv[] ALIGN_PTR = { NULL, NULL };
7663 builtin_trap((char**)argv); 7663 builtin_trap((char**)argv);
7664 fflush_all(); /* important */ 7664 fflush_all(); /* important */
7665 _exit(0); 7665 _exit(0);
@@ -9826,7 +9826,7 @@ static int run_list(struct pipe *pi)
9826 static const char encoded_dollar_at[] ALIGN1 = { 9826 static const char encoded_dollar_at[] ALIGN1 = {
9827 SPECIAL_VAR_SYMBOL, '@' | 0x80, SPECIAL_VAR_SYMBOL, '\0' 9827 SPECIAL_VAR_SYMBOL, '@' | 0x80, SPECIAL_VAR_SYMBOL, '\0'
9828 }; /* encoded representation of "$@" */ 9828 }; /* encoded representation of "$@" */
9829 static const char *const encoded_dollar_at_argv[] = { 9829 static const char *const encoded_dollar_at_argv[] ALIGN_PTR = {
9830 encoded_dollar_at, NULL 9830 encoded_dollar_at, NULL
9831 }; /* argv list with one element: "$@" */ 9831 }; /* argv list with one element: "$@" */
9832 char **vals; 9832 char **vals;