*: declare strings with ALIGN1, as appropriate
authorMichael Tokarev <mjt@tls.msk.ru>
Tue, 24 Jul 2012 13:56:37 +0000 (15:56 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 24 Jul 2012 13:56:37 +0000 (15:56 +0200)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/busybox.h
networking/udhcp/common.h
shell/shell_common.h

index 315ef8f266bec04ff96c673883cb8d73fbbe1899..b1e31e5ee6350e5d039352f5c0a8ce2470831c1d 100644 (file)
@@ -13,10 +13,10 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
 
 /* Defined in appletlib.c (by including generated applet_tables.h) */
 /* Keep in sync with applets/applet_tables.c! */
-extern const char applet_names[];
+extern const char applet_names[] ALIGN1;
 extern int (*const applet_main[])(int argc, char **argv);
 extern const uint16_t applet_nameofs[];
-extern const uint8_t applet_install_loc[];
+extern const uint8_t applet_install_loc[] ALIGN1;
 
 #if ENABLE_FEATURE_SUID || ENABLE_FEATURE_PREFER_APPLETS
 # define APPLET_NAME(i) (applet_names + (applet_nameofs[i] & 0x0fff))
index cfd58679a62e5b72f193f02204f2ab14cb5d889a..4fa0471de345f9fa454d8331ecf36916600bef48 100644 (file)
@@ -187,8 +187,8 @@ struct option_set {
 };
 
 extern const struct dhcp_optflag dhcp_optflags[];
-extern const char dhcp_option_strings[];
-extern const uint8_t dhcp_option_lengths[];
+extern const char dhcp_option_strings[] ALIGN1;
+extern const uint8_t dhcp_option_lengths[] ALIGN1;
 
 unsigned FAST_FUNC udhcp_option_idx(const char *name);
 
index f06bc41208a1ce22cf6c60e9054fd0f967078d19..993ed59511dc17626c5295526463f16e9c1aae8d 100644 (file)
@@ -21,7 +21,7 @@
 
 PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
 
-extern const char defifsvar[]; /* "IFS= \t\n" */
+extern const char defifsvar[] ALIGN1; /* "IFS= \t\n" */
 #define defifs (defifsvar + 4)
 
 int FAST_FUNC is_well_formed_var_name(const char *s, char terminator);