aboutsummaryrefslogtreecommitdiff
path: root/loginutils/passwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'loginutils/passwd.c')
-rw-r--r--loginutils/passwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/passwd.c b/loginutils/passwd.c
index 5c822b190..ab20f2807 100644
--- a/loginutils/passwd.c
+++ b/loginutils/passwd.c
@@ -53,7 +53,7 @@ static void crypt_make_salt(char *p, int cnt)
53static char* new_password(const struct passwd *pw, uid_t myuid, int algo) 53static char* new_password(const struct passwd *pw, uid_t myuid, int algo)
54{ 54{
55 char salt[sizeof("$N$XXXXXXXX")]; /* "$N$XXXXXXXX" or "XX" */ 55 char salt[sizeof("$N$XXXXXXXX")]; /* "$N$XXXXXXXX" or "XX" */
56 char *orig = ""; 56 char *orig = (char*)"";
57 char *newp = NULL; 57 char *newp = NULL;
58 char *cipher = NULL; 58 char *cipher = NULL;
59 char *cp = NULL; 59 char *cp = NULL;
@@ -241,7 +241,7 @@ int passwd_main(int argc, char **argv)
241 /*STATE_ALGO_des = 0x20, not needed yet */ 241 /*STATE_ALGO_des = 0x20, not needed yet */
242 }; 242 };
243 unsigned opt; 243 unsigned opt;
244 char *opt_a = ""; 244 const char *opt_a = "";
245 const char *filename; 245 const char *filename;
246 char *myname; 246 char *myname;
247 char *name; 247 char *name;