aboutsummaryrefslogtreecommitdiff
path: root/loginutils/passwd.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-29 22:51:44 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-29 22:51:44 +0000
commit06c0a71d2315756db874e98bc4f760ca3283b6a6 (patch)
treedf385c84041f3fd8328e7a50caef4495ef2734a8 /loginutils/passwd.c
parentb6aae0f38194cd39960a898606ee65d4be93a895 (diff)
downloadbusybox-w32-06c0a71d2315756db874e98bc4f760ca3283b6a6.tar.gz
busybox-w32-06c0a71d2315756db874e98bc4f760ca3283b6a6.tar.bz2
busybox-w32-06c0a71d2315756db874e98bc4f760ca3283b6a6.zip
preparatory patch for -Wwrite-strings #3
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;