summaryrefslogtreecommitdiff
path: root/loginutils/su.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-29 22:51:44 +0000
committerDenis Vlasenko2007-01-29 22:51:44 +0000
commit06c0a71d2315756db874e98bc4f760ca3283b6a6 (patch)
treedf385c84041f3fd8328e7a50caef4495ef2734a8 /loginutils/su.c
parentb6aae0f38194cd39960a898606ee65d4be93a895 (diff)
downloadbusybox-06c0a71d2315756db874e98bc4f760ca3283b6a6.zip
busybox-06c0a71d2315756db874e98bc4f760ca3283b6a6.tar.gz
preparatory patch for -Wwrite-strings #3
Diffstat (limited to 'loginutils/su.c')
-rw-r--r--loginutils/su.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loginutils/su.c b/loginutils/su.c
index e1c1591..9a134dd 100644
--- a/loginutils/su.c
+++ b/loginutils/su.c
@@ -14,9 +14,9 @@
int su_main(int argc, char **argv)
{
unsigned flags;
- char *opt_shell = 0;
- char *opt_command = 0;
- char *opt_username = "root";
+ char *opt_shell = NULL;
+ char *opt_command = NULL;
+ const char *opt_username = "root";
struct passwd *pw;
uid_t cur_uid = getuid();
const char *tty;