aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/adduser.c3
-rw-r--r--loginutils/chpasswd.c2
-rw-r--r--loginutils/getty.c2
-rw-r--r--loginutils/sulogin.c4
4 files changed, 6 insertions, 5 deletions
diff --git a/loginutils/adduser.c b/loginutils/adduser.c
index 6c69aaf41..79cd2f4f7 100644
--- a/loginutils/adduser.c
+++ b/loginutils/adduser.c
@@ -81,7 +81,8 @@ static void passwd_wrapper(const char *login) ATTRIBUTE_NORETURN;
static void passwd_wrapper(const char *login)
{
- static const char prog[] = "passwd";
+ static const char prog[] ALIGN1 = "passwd";
+
BB_EXECLP(prog, prog, login, NULL);
bb_error_msg_and_die("failed to execute '%s', you must set the password for '%s' manually", prog, login);
}
diff --git a/loginutils/chpasswd.c b/loginutils/chpasswd.c
index 3e02c8e7c..6fb4dca7a 100644
--- a/loginutils/chpasswd.c
+++ b/loginutils/chpasswd.c
@@ -11,7 +11,7 @@
#if ENABLE_GETOPT_LONG
#include <getopt.h>
-static const char chpasswd_longopts[] =
+static const char chpasswd_longopts[] ALIGN1 =
"encrypted\0" No_argument "e"
"md5\0" No_argument "m"
;
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 2fcb0d902..0254d3203 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -93,7 +93,7 @@ struct options {
int speeds[MAX_SPEED]; /* baud rates to be tried */
};
-static const char opt_string[] = "I:LH:f:hil:mt:wn";
+static const char opt_string[] ALIGN1 = "I:LH:f:hil:mt:wn";
#define F_INITSTRING (1<<0) /* initstring is set */
#define F_LOCAL (1<<1) /* force local */
#define F_FAKEHOST (1<<2) /* force fakehost */
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c
index 36b10fbc4..5638c4bc9 100644
--- a/loginutils/sulogin.c
+++ b/loginutils/sulogin.c
@@ -9,7 +9,7 @@
#include "libbb.h"
-static const char * const forbid[] = {
+static const char *const forbid[] = {
"ENV",
"BASH_ENV",
"HOME",
@@ -40,7 +40,7 @@ int sulogin_main(int argc, char **argv)
char *cp;
int timeout = 0;
char *timeout_arg;
- const char * const *p;
+ const char *const *p;
struct passwd *pwd;
const char *shell;
#if ENABLE_FEATURE_SHADOWPASSWDS