diff options
author | Denis Vlasenko | 2007-01-29 22:51:44 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-01-29 22:51:44 +0000 |
commit | 06c0a71d2315756db874e98bc4f760ca3283b6a6 (patch) | |
tree | df385c84041f3fd8328e7a50caef4495ef2734a8 /loginutils/adduser.c | |
parent | b6aae0f38194cd39960a898606ee65d4be93a895 (diff) | |
download | busybox-06c0a71d2315756db874e98bc4f760ca3283b6a6.zip busybox-06c0a71d2315756db874e98bc4f760ca3283b6a6.tar.gz |
preparatory patch for -Wwrite-strings #3
Diffstat (limited to 'loginutils/adduser.c')
-rw-r--r-- | loginutils/adduser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/adduser.c b/loginutils/adduser.c index ea0b89a..5a48e9c 100644 --- a/loginutils/adduser.c +++ b/loginutils/adduser.c @@ -169,7 +169,7 @@ int adduser_main(int argc, char **argv) bb_error_msg_and_die(bb_msg_perm_denied_are_you_root); } - pw.pw_gecos = "Linux User,,,"; + pw.pw_gecos = (char *)"Linux User,,,"; pw.pw_shell = (char *)DEFAULT_SHELL; pw.pw_dir = NULL; @@ -185,7 +185,7 @@ int adduser_main(int argc, char **argv) /* create a passwd struct */ pw.pw_name = argv[optind]; - pw.pw_passwd = "x"; + pw.pw_passwd = (char *)"x"; pw.pw_uid = 0; pw.pw_gid = usegroup ? xgroup2gid(usegroup) : 0; /* exits on failure */ |