diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2022-02-06 20:07:12 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-02-06 20:07:12 +0100 |
commit | 987be932ed3cbea56b68bbe85649191c13b66015 (patch) | |
tree | e6bee7fb9dca0402f5ec97807a64c1c9938dd854 /shell | |
parent | ca466f385ac985a8b3491daa9f326dc480cdee70 (diff) | |
download | busybox-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>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 |
567 | static const char *const assignment_flag[] = { | 567 | static 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 |
3683 | static void debug_print_tree(struct pipe *pi, int lvl) | 3683 | static 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; |