aboutsummaryrefslogtreecommitdiff
path: root/toys/toysh.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/toysh.c')
-rw-r--r--toys/toysh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/toysh.c b/toys/toysh.c
index 1d792f1f..7ac430c9 100644
--- a/toys/toysh.c
+++ b/toys/toysh.c
@@ -181,14 +181,14 @@ static void handle(char *command)
int cd_main(void)
{
- char *dest = toys.argc>1 ? toys.argv[1] : getenv("HOME");
+ char *dest = toys.argv[1] ? toys.argv[1]: getenv("HOME");
if (chdir(dest)) error_exit("chdir %s",dest);
return 0;
}
int exit_main(void)
{
- exit(toys.argc>1 ? atoi(toys.argv[1]) : 0);
+ exit(toys.argv[1] ? atoi(toys.argv[1]) : 0);
}
int toysh_main(void)